mirror of
git://develop.git.wordpress.org/
synced 2025-04-04 20:23:27 +02:00
Docs: Сlarify that term_id
is a valid value for the $field
parameter of get_term_by()
.
As `term_id` is the actual property name of the `WP_Term`, it should appear first and we should make it more clear that `id` and `ID` are aliases. Follow-up to [6254], [25334], [38677], [47865], [47870]. Props gazchap, audrasjb. Fixes #54065. git-svn-id: https://develop.svn.wordpress.org/trunk@51731 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
26c0800c46
commit
a52bc208ba
@ -1006,7 +1006,7 @@ function get_term( $term, $taxonomy = '', $output = OBJECT, $filter = 'raw' ) {
|
||||
*
|
||||
* @see sanitize_term_field() The $context param lists the available values for get_term_by() $filter param.
|
||||
*
|
||||
* @param string $field Either 'slug', 'name', 'id' or 'ID' (term_id), or 'term_taxonomy_id'.
|
||||
* @param string $field Either 'slug', 'name', 'term_id' (or 'id', 'ID'), or 'term_taxonomy_id'.
|
||||
* @param string|int $value Search for this term value.
|
||||
* @param string $taxonomy Taxonomy name. Optional, if `$field` is 'term_taxonomy_id'.
|
||||
* @param string $output Optional. The required return type. One of OBJECT, ARRAY_A, or ARRAY_N, which
|
||||
|
Loading…
x
Reference in New Issue
Block a user