On this page
do_action( 'registered_post_type', string $post_type, WP_Post_Type $post_type_object )
Fires after a post type is registered.
Parameters
$post_typestring-
Post type.
$post_type_objectWP_Post_Type-
Arguments used to register the post type.
More Information
We can register a custom post type with the register_post_type function. This should not be hooked before init. So, the good option is to call it with an init hook.
Post types can support any number of built-in core features such as meta boxes, custom fields, post thumbnails, post statuses, comments, and more. See the $supports the argument for a complete list of supported features.
Source
File: wp-includes/post.php. View all references
do_action( 'registered_post_type', $post_type, $post_type_object );
Related
Used By
| Used By | Description |
|---|---|
| register_post_type() wp-includes/post.php | Registers a post type. |
Changelog
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/registered_post_type