コード例 #1
0
 /**
  * Revert the result of attach()
  *
  * @return void
  **/
 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'));
 }
コード例 #2
0
 /**
  * Revert the result of attach()
  *
  * @return void
  **/
 function detach()
 {
     parent::detach();
     remove_action('admin_init', array($this, '_attach'));
     foreach ($this->settings['taxonomy'] as $taxonomy) {
         remove_action('edited_' . $taxonomy, array($this, '_save'), 10, 2);
         remove_action('created_' . $taxonomy, array($this, '_save'), 10, 2);
     }
     // unregister field names
     foreach ($this->fields as $field) {
         $this->drop_unique_field_name($field->get_name());
     }
 }
コード例 #3
0
 /**
  * Revert the result of attach()
  *
  * @return void
  **/
 function detach()
 {
     parent::detach();
     remove_action('admin_init', array($this, '_attach'));
     remove_action('save_post', array($this, '_save'));
     // unregister field names
     foreach ($this->fields as $field) {
         $this->drop_unique_field_name($field->get_name());
     }
 }