Skip to content

Instantly share code, notes, and snippets.

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 michael-cannon/5833782 to your computer and use it in GitHub Desktop.
Save michael-cannon/5833782 to your computer and use it in GitHub Desktop.
Filter testimonials_widget_widget_options example
add_filter( 'testimonials_widget_widget_options', array( &$this, 'widget_options' ) );
public function widget_options( $options ) {
foreach ( $options as $id => $parts ) {
if ( 'form' == $parts['section'] )
unset( $options[ $id ] );
}
return $options;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment