Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
A 'long way' example of removing text via add_filter in WordPress
<?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
You can’t perform that action at this time.