Carbon_Fields\Container\Term_Meta_Container::detach PHP Method

detach() public method

Revert the result of attach()
public detach ( )
    public 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);
            remove_action('created_' . $taxonomy, array($this, '_save'), 10);
        }
        // unregister field names
        foreach ($this->fields as $field) {
            $this->drop_unique_field_name($field->get_name());
        }
    }