Plugin won’t activate

From stackoverflow: https://stackoverflow.com/questions/2450510/redirect-after-plugin-activation register_activation_hook(__FILE__, ‘my_plugin_activate’); add_action(‘admin_init’, ‘my_plugin_redirect’); function my_plugin_activate() { add_option(‘my_plugin_do_activation_redirect’, true); } function my_plugin_redirect() { if (get_option(‘my_plugin_do_activation_redirect’, false)) { delete_option(‘my_plugin_do_activation_redirect’); wp_redirect(MY_PLUGIN_SETTINGS_URL); } }

Yoast SEO Plug In and my Theme duplicating code. Need some feedback on what to do? [closed]

As far as my usage with Yoast’s WordPress SEO plugin goes, I thought always assumed the plugin simply replaced any existing code with what it generates for that same purpose. If you are using the plugin and don’t want to disable it, then simply go into your header.php file and delete/comment-out any meta tags that … Read more

How to deactivate my plugin upon deactivation of NextGen

You’ve got to actually check is_plugin_active. I would use something more like this, shamelessly stolen and modified from here: register_activation_hook( __FILE__, ‘dependentplugin_activate’ ); function dependentplugin_activate() { require_once( ABSPATH . ‘/wp-admin/includes/plugin.php’ ); if ( is_plugin_active( ‘nextgen-gallery/nggallery.php’ ) ) { require_once ( WP_PLUGIN_DIR . ‘/nextgen-gallery/nggallery.php’ ); } else { // deactivate dependent plugin deactivate_plugins( __FILE__); // throw … Read more