Skip to content

Instantly share code, notes, and snippets.

@jmsmrgn
Created November 14, 2013 23:04
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 jmsmrgn/7475971 to your computer and use it in GitHub Desktop.
Save jmsmrgn/7475971 to your computer and use it in GitHub Desktop.
WordPress - Hide Widget Titles
// Add the filter and function, returning the widget title only if the first character is not "!"
add_filter( 'widget_title', 'remove_widget_title' );
function remove_widget_title( $widget_title ) {
if ( substr ( $widget_title, 0, 1 ) == '!' )
return;
else
return ( $widget_title );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment