After [34529], normalize documentation for get_terms()
and wp_get_object_terms()
.
See #10142. git-svn-id: https://develop.svn.wordpress.org/trunk@34530 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
3425177325
commit
7757f84a69
@ -1010,8 +1010,8 @@ function get_term_to_edit( $id, $taxonomy ) {
|
||||
* @type int $child_of Term ID to retrieve child terms of. If multiple taxonomies
|
||||
* are passed, $child_of is ignored. Default 0.
|
||||
* @type int|string $parent Parent term ID to retrieve direct-child terms of. Default empty.
|
||||
* @type bool $childless True to limit results to terms that have no children. This parameter has
|
||||
* no effect on non-hierarchical taxonomies. Default false.
|
||||
* @type bool $childless True to limit results to terms that have no children. This parameter
|
||||
* has no effect on non-hierarchical taxonomies. Default false.
|
||||
* @type string $cache_domain Unique cache key to be produced when this query is stored in an
|
||||
* object cache. Default is 'core'.
|
||||
* @type bool $update_term_meta_cache Whether to prime meta caches for matched terms. Default true.
|
||||
@ -2176,13 +2176,14 @@ function wp_delete_category( $cat_ID ) {
|
||||
* @param string|array $taxonomies The taxonomies to retrieve terms from.
|
||||
* @param array|string $args {
|
||||
* Array of arguments.
|
||||
* @type string $orderby Field by which results should be sorted. Accepts 'name', 'count', 'slug', 'term_group',
|
||||
* 'term_order', 'taxonomy', 'parent', or 'term_taxonomy_id'. Default 'name'.
|
||||
* @type string $orderby Field by which results should be sorted. Accepts 'name', 'count', 'slug',
|
||||
* 'term_group', 'term_order', 'taxonomy', 'parent', or 'term_taxonomy_id'.
|
||||
* Default 'name'.
|
||||
* @type string $order Sort order. Accepts 'ASC' or 'DESC'. Default 'ASC'.
|
||||
* @type string $fields Fields to return for matched terms. Accepts 'all', 'ids', 'names', and
|
||||
* 'all_with_object_id'. Note that 'all' or 'all_with_object_id' will result in an array of
|
||||
* term objects being returned, 'ids' will return an array of integers, and 'names' an array
|
||||
* of strings.
|
||||
* 'all_with_object_id'. Note that 'all' or 'all_with_object_id' will result
|
||||
* in an array of term objects being returned, 'ids' will return an array of
|
||||
* integers, and 'names' an array of strings.
|
||||
* @type int $parent Optional. Limit results to the direct children of a given term ID.
|
||||
* @type bool $update_term_meta_cache Whether to prime termmeta cache for matched terms. Only applies when
|
||||
* `$fields` is 'all', 'all_with_object_id', or 'term_id'. Default true.
|
||||
|
Loading…
Reference in New Issue
Block a user