Fires after a post type is registered.
$post_typestring
$post_type_objectWP_Post_Type
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.
do_action( 'registered_post_type', $post_type, $post_type_object );
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/registered_post_type