Created
November 14, 2013 23:04
-
-
Save jmsmrgn/7475971 to your computer and use it in GitHub Desktop.
WordPress - Hide Widget Titles
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
// 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