PHP Class Papi_Taxonomy_Type, papi

Inheritance: extends Papi_Entry_Type
Show file Open project: wp-papi/papi

Public Properties

Property Type Description
$fill_labels boolean Fill labels.
$labels array Labels, the same labels that taxonomy type object uses.
$redirect_after_create boolean Redirect after create.
$taxonomy string The taxonomy.
$type string The type name.

Public Methods

Method Description
display ( string $taxonomy ) : boolean Should the Taxonomy Type be displayed in WordPress admin or not?
edit_form ( ) Render term edit form.
get_labels ( ) : array Get labels that should be changed when using fill_labels option.

Protected Methods

Method Description
setup_actions ( ) Setup actions.
setup_meta_data ( ) Setup meta data.

Method Details

display() public method

Should the Taxonomy Type be displayed in WordPress admin or not?
public display ( string $taxonomy ) : boolean
$taxonomy string
return boolean

edit_form() public method

Render term edit form.
public edit_form ( )

get_labels() public method

Get labels that should be changed when using fill_labels option.
public get_labels ( ) : array
return array

setup_actions() protected method

Setup actions.
protected setup_actions ( )

setup_meta_data() protected method

Setup meta data.
protected setup_meta_data ( )

Property Details

$fill_labels public property

Fill labels.
public bool $fill_labels
return boolean

$labels public property

Labels, the same labels that taxonomy type object uses.
public array $labels
return array

$redirect_after_create public property

Redirect after create.
public bool $redirect_after_create
return boolean

$taxonomy public property

The taxonomy.
public string $taxonomy
return string

$type public property

The type name.
public string $type
return string