April fools: Reverse text in the_title on home page

Adding this snippet to the functions.php of your wordpress theme will temporarily display the text within your page title in reverse order. For example this page title would be “egap emoh no eltit_eht ni txet esreveR :sloof lirpA” but this is only done on the main page of your website. Just remove the snippet from the functions.php and your website will return to normal.



function april_fools_wps($text){
if(is_home()){return strrev($text);}else{return $text;}
add_filter('the_title', 'april_fools_wps');

Leave a comment