wordpress snippets last updated   : January 29, 2015
we now have 646 snippets
category admin

Completely disable the image captioning system

wordpress snippet

Adding this snippet to the functions.php of your wordpress theme will completely disable the image captioning system.

read more

Maintenance mode for the admin only

wordpress snippet

Adding this snippet to the functions.php of your wordpress theme will put only your wordpress admin section into maintenance mode. I have had a few projects that have required me to do this for a number of reasons so I had put this little snippet together. Don’t forget to change ADMIN_NAME to the username for your account.

read more

Media library URL column for easy copy and paste

wordpress snippet

Add this snippet to the functions.php of your wordpress theme to create a new column with the original file URL. I have had a few projects in the past that required a client to copy and paste a files URL into a custom field or metabox this will just make life a little easier. Thanks to Steve Taylor for this snippet, I just expanded on it a little with the input field and onclick select.

read more

Disable flash media file uploader

wordpress snippet

Adding this snippet to the functions.php of your wordpress theme will disable the flash media uploader.

read more

Disable plugin deactivation for specific plugins

wordpress snippet

Adding this snippet to the functions.php of your wordpress theme will enable you to remove the deactivate link from specific plugins. This will help you stop clients from deactivating core plugins while still providing access.

read more

Change set featured image text within admin

wordpress snippet

Adding this snippet to the functions.php of your wordpress theme will change the “Set featured image” text to “Set default image” or what you would like.

read more