unregistered_post_type action-hookWP 4.5.0

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

unregister_post_type()
unregistered_post_type
wp-includes/post.php 1887
do_action( 'unregistered_post_type', $post_type );

Where the hook is used in WordPress

Usage not found.