Fieldmanager_Field::add_term_meta_box PHP Method

add_term_meta_box() public method

Add fields to the term add/edit page
See also: Fieldmanager_Context_Term
public add_term_meta_box ( string $title, string | array $taxonomies, boolean $show_on_add = true, boolean $show_on_edit = true, integer $parent = '' )
$title string
$taxonomies string | array The taxonomies on which to display this form
$show_on_add boolean Whether or not to show the fields on the add term form
$show_on_edit boolean Whether or not to show the fields on the edit term form
$parent integer Only show this field on child terms of this parent term ID
    public function add_term_meta_box($title, $taxonomies, $show_on_add = true, $show_on_edit = true, $parent = '')
    {
        // Bail if term meta table is not installed.
        if (get_option('db_version') < 34370) {
            _doing_it_wrong(__METHOD__, esc_html__('This method requires WordPress 4.4 or above', 'fieldmanager'), 'Fieldmanager-1.0.0-beta.3');
            return false;
        }
        $this->require_base();
        return new Fieldmanager_Context_Term(array('title' => $title, 'taxonomies' => $taxonomies, 'show_on_add' => $show_on_add, 'show_on_edit' => $show_on_edit, 'parent' => $parent, 'use_fm_meta' => false, 'field' => $this));
    }