do_action( 'registered_post_type', string $post_type , WP_Post_Type $post_type_object )
Fires after a post type is registered.
Parameters
- $post_type
-
Post type.
- $post_type_object
-
Arguments used to register the post type.
Source
File: wp-includes/post.php
Changelog
Version | Description |
---|---|
WP-4.6.0 | Converted the $post_type parameter to accept a WP_Post_Type object. |
WP-3.3.0 | Introduced. |