deactivate_plugins?
-
register_activation_hook( __file__, 'sn_usermatic_install' ); function sn_usermatic_install() { if( !is_multisite() || version_compare( get_bloginfo( 'version' ), '3.0', '<' ) ){ deactivate_plugins( basename( __FILE__ ) ); } }
Anyone know why this is still letting my plugin be activated? I am not on multisite.. and I want this to only activate on multisite…
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘deactivate_plugins?’ is closed to new replies.