AIEO_DMM::MENU_SLUG, 'dmm_tab' => 'delivery_stats'); foreach (array('metrics_basis', 'ff_metrics_carrier') as $k) { if (isset($_GET[$k])) { $args[$k] = sanitize_key((string) wp_unslash($_GET[$k])); } } wp_safe_redirect(add_query_arg($args, admin_url('admin.php'))); exit; } public function render_subtab() { $parent = class_exists('AIEO_DMM') ? AIEO_DMM::instance()->get_module('fulfillment') : null; $intro = ''; if ($parent && method_exists($parent, 'section_headings')) { $h = $parent->section_headings(); if (isset($h['runlog'])) { $intro = '

' . esc_html($h['runlog'][1]) . '

'; } } if ($parent && method_exists($parent, 'render_runlog')) { $parent->render_runlog($intro); } else { list($open, $close) = AIEO_DMM_UI::card(array('icon' => 'truck', 'title' => $this->get_label())); echo $open; echo \Rooster\Admin\Ui::notice(esc_html__('Fulfillment module is not loaded — Delivery Statistics needs it.', 'ai-eshop-optimizer'), 'destructive', array('inline' => true)); echo $close; } } }