Consider this change
-
Change this:
add_action('admin_init', 'wpstudio_gsw_deactivate_check');
To:
add_action('after_switch_theme', 'wpstudio_gsw_deactivate_check');
This is only run when the theme is switched instead of checking every admin init if genesis is active. Since you already have it checking on plugin activation there is no need to check unless the theme is switched. Hope this helps!
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Consider this change’ is closed to new replies.