New answers tagged

0

This is for future reference: Currently: WordPress 4.5 (Date: 04/28/16 | With the nag message to update to WP 4.5.1) My tweaked version: // -- Originally in the post, not sure if this is necessary // -- remove_filter('wpmu_signup_blog_notification', 'activate_on_blog_signup'); // This function runs after Sign Up Step 2 function activate_user_and_blog( ...


0

The answers here are overthought and too complex. Why deactivating the plugin instead of preventing activation? Something as simple as calling die('your error message here) upon activation will do the job. function activate($networkwide) { if (is_multisite() && $networkwide) die('This plugin can\'t be activated networkwide'); } ...



Top 50 recent answers are included