Ensure the optional parameters for `get_taxonomies()` are documented as such.
See #31800. git-svn-id: https://develop.svn.wordpress.org/trunk@32349 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
e8668f7bca
commit
fae4ff9b2f
|
@ -140,11 +140,14 @@ function create_initial_taxonomies() {
|
|||
*
|
||||
* @global array $wp_taxonomies The registered taxonomies.
|
||||
*
|
||||
* @param array $args An array of key => value arguments to match against the taxonomy objects.
|
||||
* @param string $output The type of output to return, either taxonomy 'names' or 'objects'. 'names' is the default.
|
||||
* @param string $operator The logical operation to perform. 'or' means only one element
|
||||
* from the array needs to match; 'and' means all elements must match. The default is 'and'.
|
||||
* @return array A list of taxonomy names or objects
|
||||
* @param array $args Optional. An array of `key => value` arguments to match against the taxonomy objects.
|
||||
* Default empty array.
|
||||
* @param string $output Optional. The type of output to return in the array. Accepts either taxonomy 'names'
|
||||
* or 'objects'. Default 'names'.
|
||||
* @param string $operator Optional. The logical operation to perform. Accepts 'and' or 'or'. 'or' means only
|
||||
* one element from the array needs to match; 'and' means all elements must match.
|
||||
* Default 'and'.
|
||||
* @return array A list of taxonomy names or objects.
|
||||
*/
|
||||
function get_taxonomies( $args = array(), $output = 'names', $operator = 'and' ) {
|
||||
global $wp_taxonomies;
|
||||
|
|
Loading…
Reference in New Issue