unregistered_post_type
Fires after a post type was unregistered.
Description
Parameters (1)
- 0. $post_type (string)
- The post type.
Usage
- To run the hook, copy the example below.
- // run the action
- do_action( 'unregistered_post_type', $post_type );
- The following example is for adding a hook callback.
- // define the unregistered_post_type callback
- function action_unregistered_post_type( $post_type ) {
- // make action magic happen here...
- };
- // add the action
- add_action( 'unregistered_post_type', 'action_unregistered_post_type', 10, 1 );
- To remove a hook callback, use the example below.
- // remove the action
- remove_action( 'unregistered_post_type', 'action_unregistered_post_type', 10, 1 );
Defined (1)
The action is defined in the following location(s).
- /wp-includes/post.php
- do_action( 'unregistered_post_type', $post_type );