Class CMB2_Type_Taxonomy_Base
CMB Taxonomy base field type
- CMB2_Type_Base
-
CMB2_Type_Multi_Base
-
CMB2_Type_Taxonomy_Base
Direct known subclasses
CMB2_Type_Taxonomy_Multicheck,
CMB2_Type_Taxonomy_Radio,
CMB2_Type_Taxonomy_Select
Indirect known subclasses
CMB2_Type_Taxonomy_Multicheck_Hierarchical,
CMB2_Type_Taxonomy_Radio_Hierarchical,
CMB2_Type_Taxonomy_Select_Hierarchical
Package: CMB2
Category: WordPress_Plugin
License: GPL-2.0+
Author: CMB2 team
Since: 2.2.2
Link: https://cmb2.io
Located at includes/types/CMB2_Type_Taxonomy_Base.php
Methods summary
public
mixed
|
#
get_object_terms( )
Checks if we can get a post object, and if so, uses |
public
mixed
|
|
public
mixed
|
#
non_post_object_terms( )
For non-post objects, wraps the call to wp_get_object_terms with transient caching. |
public
mixed
|
|
protected
|
|
public
|
|
protected
string
|
#
loop_terms( array $all_terms, array|string $saved_terms )
Takes a list of all tax terms and outputs. |
protected
string
|
|
public
string
|
Methods inherited from CMB2_Type_Multi_Base
concat_items(),
list_input(),
list_input_checkbox(),
select_option()
Methods inherited from CMB2_Type_Base
__call(),
__construct(),
__get(),
get_rendered(),
parse_args(),
parse_args_from_overrides(),
render(),
rendered()
Properties summary
protected
integer|null
|
$parent
Parent term ID when looping hierarchical terms. |
#
null
|