diff --git src/wp-includes/taxonomy.php src/wp-includes/taxonomy.php
index 9ddd02c..58c02a9 100644
|
|
function register_taxonomy( $taxonomy, $object_type, $args = array() ) { |
388 | 388 | * Fires after a taxonomy is registered. |
389 | 389 | * |
390 | 390 | * @since 3.3.0 |
| 391 | * @since 4.7.0 Converted the `$taxonomy_object` parameter to accept a WP_Taxonomy object. |
391 | 392 | * |
392 | | * @param string $taxonomy Taxonomy slug. |
393 | | * @param array|string $object_type Object type or array of object types. |
394 | | * @param array $args Array of taxonomy registration arguments. |
| 393 | * @param string $taxonomy Taxonomy slug. |
| 394 | * @param array|string $object_type Object type or array of object types. |
| 395 | * @param WP_Taxonomy $taxonomy_object Array of taxonomy registration arguments. |
395 | 396 | */ |
396 | | do_action( 'registered_taxonomy', $taxonomy, $object_type, $args ); |
| 397 | do_action( 'registered_taxonomy', $taxonomy, $object_type, $taxonomy_object ); |
397 | 398 | } |
398 | 399 | |
399 | 400 | /** |