public function detach() { parent::detach(); $this->drop_unique_page(); $page_hook = get_plugin_page_hookname($this->settings['file'], ''); remove_action('load-' . $page_hook, array($this, '_save')); }