Created
August 12, 2011 20:37
-
-
Save jmdodd/1142941 to your computer and use it in GitHub Desktop.
__return_empty_string() and use in filters
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
<?php | |
if ( ! function_exists( '__return_empty_string' ) ) { | |
function __return_empty_string() { | |
return ''; | |
} } | |
add_filter( 'the_generator', '__return_empty_string' ); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment