Created
April 10, 2015 05:58
-
-
Save webmasterninjay/2a2633c7d68e28b78a27 to your computer and use it in GitHub Desktop.
Wordpress: Remove widget title using !
This file contains hidden or 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 | |
/* | |
* Remove Widget Title using ! | |
*/ | |
add_filter( 'widget_title', 'jay_remove_widget_title' ); | |
function jay_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