/** * pre-dispatching logic for admin page controllers */ public function __adminInit() { $input = new PMWI_Input(); $page = strtolower($input->getpost('page', '')); if (preg_match('%^' . preg_quote(str_replace('_', '-', self::PREFIX), '%') . '([\\w-]+)$%', $page)) { $this->adminDispatcher($page, strtolower($input->getpost('action', 'index'))); } add_filter('plugin_row_meta', array($this, 'plugin_row_meta'), 10, 2); }