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

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

Check if a plugin is active

wordpress snippet

Adding this snippet to your wordpress theme will return true if the specified plugin is active. You will need to make sure you specify the name of the plugin sub-directory/file.

read more