A WordPress-centric search engine for devs and theme authors



registered_post_type ›

Since4.6.0
Deprecatedn/a
do_action( 'registered_post_type', $post_type, $post_type_object )
Parameters: (2)
  • (string) $post_type Post type.
    Required: Yes
  • (WP_Post_Type) $post_type_object Arguments used to register the post type.
    Required: Yes
Defined at:
Codex:

Fires after a post type is registered.





Source

do_action( 'registered_post_type', $post_type, $post_type_object );