WordPress Hooks Explorer

Listing all hooks extracted WordPress Core


Details about registered_post_type_

Back to home

Files

Filename Hook Type Line Number PHP Doc
wp-includes/post.php do_action 1730 /**
* Fires after a specific post type is registered.
*
* The dynamic portion of the filter name, `$post_type`, refers to the post type key.
*
* Possible hook names include:
*
* - `registered_post_type_post`
* - `registered_post_type_page`
*
* @since 6.0.0
*
* @param string $post_type Post type.
* @param WP_Post_Type $post_type_object Arguments used to register the post type.
*/

Hook Parameters

Parameter Type Name Description
string $post_type Post type.
WP_Post_Type $post_type_object Arguments used to register the post type.