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