Action hook 'registered_post_type'

in WP Core File wp-includes/post.php at line 1824

Description

Fires after a post type is registered.

Occurrences

Filename Line Number
wp-includes/post.php 1824

Parameters

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

PHP Doc

/**
	 * Fires after a post type is registered.
	 *
	 * @since 3.3.0
	 * @since 4.6.0 Converted the `$post_type` parameter to accept a `WP_Post_Type` object.
	 *
	 * @param string       $post_type        Post type.
	 * @param WP_Post_Type $post_type_object Arguments used to register the post type.
	 */