do_action( “registered_post_type_{$post_type}”, string $post_type, WP_Post_Type $post_type_object )

Fires after a specific post type is registered.

Description

The dynamic portion of the filter name, $post_type, refers to the post type key.

Possible hook names include:

  • registered_post_type_post
  • registered_post_type_page

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, $post_type_object );

Changelog

VersionDescription
6.0.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.