registered_post_type_page action-hookWP 6.0.0

Fires after a specific post type is registered.

This is one of the variants of the dynamic hook registered_post_type_(post_type)

Usage

add_action( 'registered_post_type_page', 'wp_kama_registered_post_type_page_action', 10, 2 );

/**
 * Function for `registered_post_type_page` action-hook.
 * 
 * @param string       $post_type        Post type.
 * @param WP_Post_Type $post_type_object Arguments used to register the post type.
 *
 * @return void
 */
function wp_kama_registered_post_type_page_action( $post_type, $post_type_object ){

	// action...
}
$post_type(string)
Post type.
$post_type_object(WP_Post_Type)
Arguments used to register the post type.

Changelog

Since 6.0.0 Introduced.

Where the hook is called

register_post_type()
registered_post_type_page
wp-includes/post.php 1829
do_action( "registered_post_type_{$post_type}", $post_type, $post_type_object );

Where the hook is used in WordPress

Usage not found.