Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@rmccue
Created March 21, 2010 21:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rmccue/339569 to your computer and use it in GitHub Desktop.
Save rmccue/339569 to your computer and use it in GitHub Desktop.
Disable Lilina's Get Satisfaction widget on public-facing site.
<?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