Fires after a post type is registered.
Parameters
$post_typestring- Post type.
$post_type_objectWP_Post_Type- Arguments used to register the post type.
Source
do_action( 'registered_post_type', $post_type, $post_type_object );
Changelog
| Version | Description |
|---|---|
| 4.6.0 | Converted the $post_type parameter to accept a WP_Post_Type object. |
| 3.3.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.