Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: registered_post_type

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
1704      /**
1705       * Fires after a post type is registered.
1706       *
1707       * @since 3.3.0
1708       * @since 4.6.0 Converted the `$post_type` parameter to accept a `WP_Post_Type` object.
1709       *
1710       * @param string       $post_type        Post type.
1711       * @param WP_Post_Type $post_type_object Arguments used to register the post type.
1712       */
1713      do_action( 'registered_post_type', $post_type, $post_type_object );
1714
1715      /**
1716       * Fires after a specific post type is registered.
1717       *
1718       * The dynamic portion of the filter name, `$post_type`, refers to the post type key.
1719       *
1720       * Possible hook names include:
1721       *
1722       *  - `registered_post_type_post`