Skip to content

Instantly share code, notes, and snippets.

@nickdavis
Last active March 16, 2018 21:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nickdavis/6403c81b4ec05ba32afecc97634a589e to your computer and use it in GitHub Desktop.
Save nickdavis/6403c81b4ec05ba32afecc97634a589e to your computer and use it in GitHub Desktop.
An example of modifying text via add_filter in Wordpress
<?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