mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
Docs: Clarify that register_taxonomy() only accepts lowercase values for the $taxonomy parameter.
This brings consistency with docblock used in `register_post_type()`. Props audrasjb, bengreeley, dipakparmar443. Fixes #56352 See #55646. git-svn-id: https://develop.svn.wordpress.org/trunk@53873 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
9b04bb68f1
commit
6aecbb7f0a
@ -390,7 +390,8 @@ function is_taxonomy_hierarchical( $taxonomy ) {
|
||||
*
|
||||
* @global WP_Taxonomy[] $wp_taxonomies Registered taxonomies.
|
||||
*
|
||||
* @param string $taxonomy Taxonomy key, must not exceed 32 characters.
|
||||
* @param string $taxonomy Taxonomy key, must not exceed 32 characters and may only contain lowercase alphanumeric
|
||||
* characters, dashes, and underscores. See sanitize_key().
|
||||
* @param array|string $object_type Object type or array of object types with which the taxonomy should be associated.
|
||||
* @param array|string $args {
|
||||
* Optional. Array or query string of arguments for registering a taxonomy.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user