Admin Tweaks


Remove Content Editor box from Custom Post Type

The following snippet of code will remove the content editor box from a specific custom post type.


Prevent WordPress From Updating

While strongly discouraged, sometimes you need to prevent WordPress from automatically updating or from updating entirely. To accomplish this you just need to add two lines of code to your wp-config.php file.

Thats it. You will no longer have the option to update WordPress in the admin area.


Only Show if User is Logged in

The following snippet can be used to show content only to users who are currently logged in.

Or with an else statement:

taxonomy-product-categories.php template


Hide Default Editor in Admin

If you want to remove the default editing area from specific pages or posts in the admin area here is how to do it. Put the following in your functions.php file: