Title: registered_post_type
Published: April 25, 2014
Last modified: February 24, 2026

---

# do_action( ‘registered_post_type’, string $post_type, WP_Post_Type $post_type_object )

## In this article

 * [Parameters](https://developer.wordpress.org/reference/hooks/registered_post_type/?output_format=md#parameters)
 * [More Information](https://developer.wordpress.org/reference/hooks/registered_post_type/?output_format=md#more-information)
 * [Source](https://developer.wordpress.org/reference/hooks/registered_post_type/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/hooks/registered_post_type/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/hooks/registered_post_type/?output_format=md#changelog)

[ Back to top](https://developer.wordpress.org/reference/hooks/registered_post_type/?output_format=md#wp--skip-link--target)

Fires after a post type is registered.

## 󠀁[Parameters](https://developer.wordpress.org/reference/hooks/registered_post_type/?output_format=md#parameters)󠁿

 `$post_type`string

Post type.

`$post_type_object`[WP_Post_Type](https://developer.wordpress.org/reference/classes/wp_post_type/)

Arguments used to register the post type.

## 󠀁[More Information](https://developer.wordpress.org/reference/hooks/registered_post_type/?output_format=md#more-information)󠁿

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.

## 󠀁[Source](https://developer.wordpress.org/reference/hooks/registered_post_type/?output_format=md#source)󠁿

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

[View all references](https://developer.wordpress.org/reference/files/wp-includes/post.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/6.9.4/src/wp-includes/post.php#L1849)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/post.php#L1849-L1849)

## 󠀁[Related](https://developer.wordpress.org/reference/hooks/registered_post_type/?output_format=md#related)󠁿

| Used by | Description | 
| [register_post_type()](https://developer.wordpress.org/reference/functions/register_post_type/)`wp-includes/post.php` |

Registers a post type.

  |

## 󠀁[Changelog](https://developer.wordpress.org/reference/hooks/registered_post_type/?output_format=md#changelog)󠁿

| Version | Description | 
| [4.6.0](https://developer.wordpress.org/reference/since/4.6.0/) | Converted the `$post_type` parameter to accept a `WP_Post_Type` object. | 
| [3.3.0](https://developer.wordpress.org/reference/since/3.3.0/) | Introduced. |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fregistered_post_type%2F)
before being able to contribute a note or feedback.