Docs: Correct type for query_var
argument of register_taxonomy()
.
Props juiiee8487, audrasjb. Fixes #47877. git-svn-id: https://develop.svn.wordpress.org/trunk@45797 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
a58eb86d5e
commit
1177e1212f
@ -396,7 +396,7 @@ function is_taxonomy_hierarchical( $taxonomy ) {
|
|||||||
* @type bool $hierarchical Either hierarchical rewrite tag or not. Default false.
|
* @type bool $hierarchical Either hierarchical rewrite tag or not. Default false.
|
||||||
* @type int $ep_mask Assign an endpoint mask. Default `EP_NONE`.
|
* @type int $ep_mask Assign an endpoint mask. Default `EP_NONE`.
|
||||||
* }
|
* }
|
||||||
* @type string $query_var Sets the query var key for this taxonomy. Default `$taxonomy` key. If
|
* @type string|bool $query_var Sets the query var key for this taxonomy. Default `$taxonomy` key. If
|
||||||
* false, a taxonomy cannot be loaded at `?{query_var}={term_slug}`. If a
|
* false, a taxonomy cannot be loaded at `?{query_var}={term_slug}`. If a
|
||||||
* string, the query `?{query_var}={term_slug}` will be valid.
|
* string, the query `?{query_var}={term_slug}` will be valid.
|
||||||
* @type callable $update_count_callback Works much like a hook, in that it will be called when the count is
|
* @type callable $update_count_callback Works much like a hook, in that it will be called when the count is
|
||||||
|
Loading…
Reference in New Issue
Block a user