v 3.6.8 releasd

This commit is contained in:
magepeopleteam 2022-08-04 05:12:16 +00:00
parent 41926e8a21
commit 2e1a6f94ea
1 changed files with 10 additions and 0 deletions

View File

@ -113,5 +113,15 @@ if (is_plugin_active('woocommerce/woocommerce.php')) {
require_once(dirname(__FILE__) . "/inc/quick_setup.php");
}
function mep_no_woo_event_activation_redirect($plugin)
{
// $check_quick_setup = get_option('mep_quick_setup') ? get_option('mep_quick_setup') : 'no-done';
$slug = 'admin.php?page=mep_event_quick_setup_page';
if ($plugin == plugin_basename(__FILE__)) {
exit(wp_redirect(admin_url($slug)));
}
}
add_action('activated_plugin', 'mep_no_woo_event_activation_redirect');
}