public function __construct($key, $title, $parent = null) { parent::__construct($key, $title, $parent); if (is_admin() && isset($_REQUEST['page']) && $_REQUEST['page'] == $this->_key) { add_action('init', function () { $this->_table->process_action(); if (!empty($_GET['_wp_http_referer'])) { wp_redirect(remove_query_arg(['_wp_http_referer', '_wpnonce'], wp_unslash($_SERVER['REQUEST_URI']))); exit; } }); } }