unregistered_post_type WordPress Action Hook
The unregistered_post_type hook is called when a post type is unregistered. This hook can be used to take action when a post type is unregistered. For example, you could use this hook to remove any customizations that were made to the post type.
do_action( 'unregistered_post_type', string $post_type ) #
Fires after a post type was unregistered.
Parameters
- $post_type
(string)Post type key.
Source
File: wp-includes/post.php
Changelog
Version | Description |
---|---|
4.5.0 | Introduced. |