Files
Filename | Hook Type | Line Number | PHP Doc |
---|---|---|---|
wp-includes/class-wp-taxonomy.php | apply_filters | 338 | /** * Filters the arguments for registering a specific taxonomy. * * The dynamic portion of the filter name, `$taxonomy`, refers to the taxonomy key. * * Possible hook names include: * * - `register_category_taxonomy_args` * - `register_post_tag_taxonomy_args` * * @since 6.0.0 * * @param array $args Array of arguments for registering a taxonomy. * See the register_taxonomy() function for accepted arguments. * @param string $taxonomy Taxonomy key. * @param string[] $object_type Array of names of object types for the taxonomy. */ |
wp-includes/class-wp-post-type.php | apply_filters | 462 | /** * Filters the arguments for registering a specific post type. * * The dynamic portion of the filter name, `$post_type`, refers to the post type key. * * Possible hook names include: * * - `register_post_post_type_args` * - `register_page_post_type_args` * * @since 6.0.0 * * @param array $args Array of arguments for registering a post type. * See the register_post_type() function for accepted arguments. * @param string $post_type Post type key. */ |
Hook Parameters
Parameter Type | Name | Description |
---|---|---|
array | $args | Array of arguments for registering a taxonomy. |
string | $taxonomy | Taxonomy key. |
string[] | $object_type | Array of names of object types for the taxonomy. |
array | $args | Array of arguments for registering a post type. |
string | $post_type | Post type key. |