insights()->init(); } function mep_event_activation_redirect($plugin) { if ($plugin == plugin_basename(__FILE__)) { exit(wp_redirect(admin_url('edit.php?post_type=mep_events&page=mep_event_welcome_page'))); } } add_action('activated_plugin', 'mep_event_activation_redirect'); require_once(dirname(__FILE__) . "/inc/mep_file_include.php"); } else { function mep_admin_notice_wc_not_active() { $class = 'notice notice-error'; printf( '

%s

', __('You Must Install WooCommerce Plugin before activating Event Manager For Woocommerce , Becuase It is dependent on Woocommerce Plugin') ); } add_action('admin_notices', 'mep_admin_notice_wc_not_active'); }