Run Tasks Before Activate Your Plugin – wptip #13

Sometimes we need to test specific tasks before activating our custom plugin, like identify if another plugin is already active. If you face this situation you can count with the activation hook called register_activation_hook.

In the example below, we’re testing if the plugin PODS.io is active, otherwise, the process will stop the activation of our custom plugin and display an error message to the user.

Read More