updated   : May 15, 2012
we now have 588 snippets
By : , on May 09, 2012 9:00 am

Disable theme, plugin editor and plugin, core updates

wordpress snippet

Adding the first line to your wordpress wp-config.php file will disable theme and plugin editor. Adding the second line to your wordpress wp-config.php file will disable plugin and core updates.

read more
By : , on December 08, 2011 9:00 am

Disable content editor for specific page template

wordpress snippet

Adding this snippet to the functions.php of your wordpress theme will disable the content editor when a page is using a specific template. Don’t forget to change the name of the template file on line 08 this sample I have submit.php but can be changed to anything.

read more
By : , on October 02, 2011 9:00 am

Disable sidebar widgets on specific posts

wordpress snippet

Adding this snippet to the functions.php of your wordpress theme will let you disable widgets on specific posts by updating the array on line 3 with post ID’s. Please note that this is a comma separated list of ID’s.

read more
By : , on July 09, 2011 9:00 am

Disable editors and plugin modifications entirely

wordpress snippet

Adding this snippet to the wp-config.php of your wordpress install will disable theme editing and the plugin editor entirely. Including removing them from the wordpress admin menu and also disabling the ability to delete plugins.

read more
By : , on April 02, 2011 9:00 am

Disable the allow_password_reset feature

wordpress snippet

Adding this snippet to the functions.php will disable the allow_password_reset feature from the login page. When using the lost password feature after you add this snippet wordpress will display “Password reset is not allowed for this user”.

read more
By : , on February 18, 2011 9:00 am

Disable CRON job feature

wordpress snippet

Adding this snippet to the wp-config will disable CRON services within wordpress.

read more
By : , on November 25, 2010 9:00 am

Limit the number of post revisions

wordpress snippet

Adding this PHP code to your wp-config.php will limit the number of post revisions.

read more
By : , on November 22, 2010 9:00 am

Disable widgets on specific pages by user level

wordpress snippet

Adding this php code to your functions.php will disable widgets on the home page only, without completely disabling widgets. You could change is_home() to is_page() or specific pages.

read more