Last active
March 16, 2018 21:34
-
-
Save nickdavis/6403c81b4ec05ba32afecc97634a589e to your computer and use it in GitHub Desktop.
An example of modifying 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 | |
add_filter( 'my_filter', 'modify_my_filter_text' ); | |
/** | |
* Modifies the text. | |
*/ | |
function modify_my_filter_text() { | |
return 'Something else'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment