mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-13 22:26:06 +01:00
Docs: Adjust the term_exists_default_query_args
filter docs per the documentation standards.
Follow-up to [52987]. See #55439. Built from https://develop.svn.wordpress.org/trunk@52991 git-svn-id: http://core.svn.wordpress.org/trunk@52580 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
ff1e74602d
commit
05dfeab45e
@ -1560,14 +1560,16 @@ function term_exists( $term, $taxonomy = '', $parent = null ) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Filters default arguments for checking if term exists.
|
* Filters default query arguments for checking if a term exists.
|
||||||
*
|
*
|
||||||
* @since 6.0.0
|
* @since 6.0.0
|
||||||
*
|
*
|
||||||
* @param array $defaults An array of arguments for term_exists.
|
* @param array $defaults An array of arguments passed to get_terms().
|
||||||
* @param int|string $term The term to check. Accepts term ID, slug, or name.
|
* @param int|string $term The term to check. Accepts term ID, slug, or name.
|
||||||
* @param string $taxonomy The taxonomy name to use. An empty string indicates the search is against all taxonomies.
|
* @param string $taxonomy The taxonomy name to use. An empty string indicates
|
||||||
* @param int|null $parent ID of parent term under which to confine the exists search. Null indicates the search is unconfined.
|
* the search is against all taxonomies.
|
||||||
|
* @param int|null $parent ID of parent term under which to confine the exists search.
|
||||||
|
* Null indicates the search is unconfined.
|
||||||
*/
|
*/
|
||||||
$defaults = apply_filters( 'term_exists_default_query_args', $defaults, $term, $taxonomy, $parent );
|
$defaults = apply_filters( 'term_exists_default_query_args', $defaults, $term, $taxonomy, $parent );
|
||||||
|
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '6.0-alpha-52990';
|
$wp_version = '6.0-alpha-52991';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
Loading…
Reference in New Issue
Block a user