Skip to content

Instantly share code, notes, and snippets.

@rinatkhaziev
Last active March 11, 2016 17:01
Show Gist options
  • Save rinatkhaziev/43dfd18357fb1de4a4fb to your computer and use it in GitHub Desktop.
Save rinatkhaziev/43dfd18357fb1de4a4fb to your computer and use it in GitHub Desktop.
Make Donald Drumpf Again
<?php
add_filter( 'the_content', 'make_donald_drumpf_again', 666 );
add_filter( 'the_title', 'make_donald_drumpf_again', 666 );
add_filter( 'comment_text', 'make_donald_drumpf_again', 666 );
function make_donald_drumpf_again( $content ) {
return str_replace( 'Trump', 'Drumpf', $content );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment