unregistered_post_type
Fires after a post type was unregistered.
Usage
add_action( 'unregistered_post_type', 'wp_kama_unregistered_post_type_action' ); /** * Function for `unregistered_post_type` action-hook. * * @param string $post_type Post type key. * * @return void */ function wp_kama_unregistered_post_type_action( $post_type ){ // action... }
- $post_type(string)
- Post type key.
Changelog
Since 4.5.0 | Introduced. |
Where the hook is called
unregistered_post_type
wp-includes/post.php 1887
do_action( 'unregistered_post_type', $post_type );