do_action( 'registered_post_type', string $post_type, WP_Post_Type $post_type_object )

Fires after a post type is registered.


Description Description


Parameters Parameters

$post_type

(string) Post type.

$post_type_object

(WP_Post_Type) Arguments used to register the post type.


Top ↑

Source Source

File: wp-includes/post.php

View on Trac


Top ↑

Changelog Changelog

Changelog
Version Description
4.6.0 Converted the $post_type parameter to accept a WP_Post_Type object.
3.3.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

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