wp/wp-includes/class-wp-taxonomy.php
changeset 21 48c4eec2b7e6
parent 19 3d72ae0968f4
child 22 8c2e4d02f4ef
equal deleted inserted replaced
20:7b1b88e27a20 21:48c4eec2b7e6
    10 /**
    10 /**
    11  * Core class used for interacting with taxonomies.
    11  * Core class used for interacting with taxonomies.
    12  *
    12  *
    13  * @since 4.7.0
    13  * @since 4.7.0
    14  */
    14  */
       
    15 #[AllowDynamicProperties]
    15 final class WP_Taxonomy {
    16 final class WP_Taxonomy {
    16 	/**
    17 	/**
    17 	 * Taxonomy key.
    18 	 * Taxonomy key.
    18 	 *
    19 	 *
    19 	 * @since 4.7.0
    20 	 * @since 4.7.0
   274 	 * Constructor.
   275 	 * Constructor.
   275 	 *
   276 	 *
   276 	 * See the register_taxonomy() function for accepted arguments for `$args`.
   277 	 * See the register_taxonomy() function for accepted arguments for `$args`.
   277 	 *
   278 	 *
   278 	 * @since 4.7.0
   279 	 * @since 4.7.0
   279 	 *
       
   280 	 * @global WP $wp Current WordPress environment instance.
       
   281 	 *
   280 	 *
   282 	 * @param string       $taxonomy    Taxonomy key, must not exceed 32 characters.
   281 	 * @param string       $taxonomy    Taxonomy key, must not exceed 32 characters.
   283 	 * @param array|string $object_type Name of the object type for the taxonomy object.
   282 	 * @param array|string $object_type Name of the object type for the taxonomy object.
   284 	 * @param array|string $args        Optional. Array or query string of arguments for registering a taxonomy.
   283 	 * @param array|string $args        Optional. Array or query string of arguments for registering a taxonomy.
       
   284 	 *                                  See register_taxonomy() for information on accepted arguments.
   285 	 *                                  Default empty array.
   285 	 *                                  Default empty array.
   286 	 */
   286 	 */
   287 	public function __construct( $taxonomy, $object_type, $args = array() ) {
   287 	public function __construct( $taxonomy, $object_type, $args = array() ) {
   288 		$this->name = $taxonomy;
   288 		$this->name = $taxonomy;
   289 
   289