Class Fieldmanager_Datasource_Term
Datasource to populate autocomplete and option fields with WordPress Terms.
- Fieldmanager_Datasource
- Fieldmanager_Datasource_Term
Methods summary
public
|
|
public
array
|
|
public
string
|
#
get_ajax_action( )
Get an action to register by hashing (non cryptographically for speed) the options that make this datasource unique. |
public
array
|
#
preload_alter_values(
Unique among FM types, the taxonomy datasource can store data outside FM's array. This is how we add it back into the array for editing. |
public
int[]
|
#
presave_alter_values(
Presave hook to set taxonomy data |
public
string
|
#
presave(
Sanitize a value |
public
|
|
public
array[]
|
|
public
string
|
|
public
string
|
|
public
string
|
Methods inherited from Fieldmanager_Datasource
autocomplete_search()
,
get_items_for_ajax()
Magic methods summary
Properties summary
public
string|array
|
$taxonomy |
#
Taxonomy name or array of taxonomy names |
public
array
|
$taxonomy_args |
#
Helper for taxonomy-based option sets; arguments to find terms |
public
boolean
|
$taxonomy_hierarchical |
#
Sort taxonomy hierarchically and indent child categories with dashes? |
public
integer
|
$taxonomy_hierarchical_depth |
#
How far to descend into taxonomy hierarchy (0 for no limit) |
public
boolean
|
$append_taxonomy |
#
Pass $append = true to wp_set_object_terms? |
public
string
|
$taxonomy_save_to_terms |
#
If true, additionally save taxonomy terms to WP's terms tables. |
public
string
|
$only_save_to_taxonomy |
#
If true, only save this field to the taxonomy tables, and do not serialize in the FM array. |
public
boolean
|
$store_term_taxonomy_id |
#
If true, store the term_taxonomy_id instead of the term_id |
public
boolean
|
$use_ajax |
#
Build this datasource using AJAX |
Properties inherited from Fieldmanager_Datasource
$ajax_action
,
$allow_optgroups
,
$counter
,
$grouped
,
$options
,
$options_callback