Last active
March 16, 2018 21:36
-
-
Save nickdavis/fd8a1c75c6f68389f6f087a9f63357df to your computer and use it in GitHub Desktop.
A 'long way' example of removing text via add_filter in WordPress
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 | |
add_filter( 'my_filter', 'remove_my_filter_text' ); | |
/** | |
* Removes the text (long way). | |
*/ | |
function remove_my_filter_text() { | |
return ''; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment