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');

Comments  Leave a Reply

  1. Thank you for this!

Add a Comment

We're glad you have chosen to leave a comment. Please keep in mind that all comments are moderated according to our privacy policy, and all links are nofollow. Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.

WordPress Launch Checklist

The Ultimate WordPress Launch Checklist

We've compiled all the essential checklist items for your next WordPress website launch into one handy ebook.
Yes, Send Me the Free eBook!