From 2e1a6f94ea3174bcf660e49be15493031989932b Mon Sep 17 00:00:00 2001 From: magepeopleteam Date: Thu, 4 Aug 2022 05:12:16 +0000 Subject: [PATCH] v 3.6.8 releasd --- woocommerce-event-press.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/woocommerce-event-press.php b/woocommerce-event-press.php index d33e41c..ea54663 100644 --- a/woocommerce-event-press.php +++ b/woocommerce-event-press.php @@ -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'); } \ No newline at end of file