base) ) { wp_enqueue_style('mep-welcome-style', plugin_dir_url(__DIR__) . 'inc/welcome/css/welcome.css', array()); }elseif(('mep_events_page_mep_event_import_page' == $current_screen->base)){ wp_enqueue_style('mep-welcome-style', plugin_dir_url(__DIR__) . 'inc/welcome/css/welcome.css', array()); }else{ return; } } //Add admin page to the menu add_action('admin_menu', 'mep_event_welcome_admin_menu'); function mep_event_welcome_admin_menu() { add_submenu_page('edit.php?post_type=mep_events', __('Welcome', 'mage-eventpress'), __('Welcome', 'mage-eventpress'), 'manage_options', 'mep_event_welcome_page', 'mep_event_welcome_page'); add_submenu_page('edit.php?post_type=mep_events', __('Dummy Import', 'mage-eventpress'), __('Dummy Import', 'mage-eventpress'), 'manage_options', 'mep_event_import_page', 'mep_event_import_page'); } function mep_event_welcome_page() { ?>
'; require_once(dirname(__DIR__) . "/inc/welcome/welcome.php"); echo '
'; break; case 'kwb': echo '
'; require_once(dirname(__DIR__) . "/inc/welcome/support.php"); echo '
'; break; default: echo '
'; require_once(dirname(__DIR__) . "/inc/welcome/welcome.php"); echo '
'; break; endswitch; ?>
'; require_once(dirname(__DIR__) . "/inc/welcome/import.php"); echo '
'; ?>