Created
March 21, 2010 21:09
-
-
Save rmccue/339569 to your computer and use it in GitHub Desktop.
Disable Lilina's Get Satisfaction widget on public-facing site.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Plugin Name: Disable Feedback Widget | |
Plugin Description: Disables the feedback widget on a public site | |
Plugin URI: http://getlilina.org/ | |
Author: Ryan McCue | |
Author URI: http://ryanmccue.info/ | |
Version: 1.0 | |
Min Version: 1.0 | |
*/ | |
function remove_gsfn() { | |
// Unfortunately, this function is missing. Oops! | |
//remove_action('template_footer', 'gsfn_feedback_widget'); | |
global $filters; | |
$id = _build_callback_string('gsfn_feedback_widget'); | |
unset($filters['template_footer'][10][$id]); | |
} | |
add_action('init', 'remove_gsfn'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment