Fires after a specific post type is registered.
The dynamic portion of the filter name, $post_type, refers to the post type key.
Possible hook names include:
registered_post_type_postregistered_post_type_page$post_typestring
$post_type_objectWP_Post_Type
do_action( "registered_post_type_{$post_type}", $post_type, $post_type_object );
| Version | Description |
|---|---|
| 6.0.0 | Introduced. |
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/registered_post_type_post_type