registered_taxonomy_{$taxonomy}

动作钩子


do_action( "registered_taxonomy_{$taxonomy}", $taxonomy, $object_type, (array)
参数
  • (string)
    $taxonomy
    Taxonomy slug.
    Required:
  • (array|string)
    $object_type
    Object type or array of object types.
    Required:
  • (array)
    $args
    Array of taxonomy registration arguments.
    Required:
定义位置
  • wp-includes/taxonomy.php
    , line 549
引入
6.0.0
弃用

Fires after a specific taxonomy is registered.

The dynamic portion of the filter name, $taxonomy, refers to the taxonomy key.

Possible hook names include:

  • registered_taxonomy_category
  • registered_taxonomy_post_tag
do_action( "registered_taxonomy_{$taxonomy}", $taxonomy, $object_type, (array) $taxonomy_object );