unregistered_post_type хук-событие . WP 4.5.0
Fires after a post type was unregistered.
Использование
add_action( 'unregistered_post_type', 'action_function_name_1143' ); function action_function_name_1143( $post_type ){ // action... }
- $post_type(строка)
- Post type key.
Список изменений
С версии 4.5.0 | Введена. |
Где вызывается хук
unregistered_post_type
wp-includes/post.php 1510
do_action( 'unregistered_post_type', $post_type );