Skip to content

Instantly share code, notes, and snippets.

@webmasterninjay
Created April 10, 2015 05:58
Show Gist options
  • Save webmasterninjay/2a2633c7d68e28b78a27 to your computer and use it in GitHub Desktop.
Save webmasterninjay/2a2633c7d68e28b78a27 to your computer and use it in GitHub Desktop.
Wordpress: Remove widget title using !
<?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