WP PHP Hacks

This section contains details of a few PHP ‘hacks’ which I’ve tried at various times.


  • 22-Jan-2013 : Protected content This little PHP snippet allows you to selectively display content to users who are, or who are not, logged in. Make sure you know where your theme’s functions.php file is stored: it will be somewhere like /public_html/wp/wp-content/themes/theme_name/functions. Make sure you know how to replace this file manually, either via your site’s cPanel or by ftp. Go Appearance ...
  • 21-Jan-2013 : Get rid of the WordPress ‘Howdy’ greeting I know there’s a plugin which will get rid of that irritating ‘Howdy’ greeting but here’s a simple snippet of PHP which will do the same thing. Make sure you know where your theme’s functions.php file is stored: it will be somewhere like /public_html/wp/wp-content/themes/theme_name/functions. Make sure you know how to replace this file manually, either via ...

If you discover any errors on this page, please fill out this contact form or email me and I’ll fix them as quickly as I can.