WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru Черная пятница на сайте Template Monster
событие не описано

delete_post хук-событие . WP 1.2.0

Fires immediately before a post is deleted from the database.

Использование

add_action( 'delete_post', 'action_function_name_9477' );
function action_function_name_9477( $postid ){
	// action...
}
$postid(число)
Post ID.

Список изменений

С версии 1.2.0 Введена.

Где вызывается хук

wp_delete_post()
delete_post
wp_delete_attachment()
delete_post
wp-includes/post.php 3025
do_action( 'delete_post', $postid );
wp-includes/post.php 5625
do_action( 'delete_post', $post_id );

Где используется хук (в ядре WP)

wp-includes/default-filters.php 378
add_action( 'delete_post', '_wp_delete_post_menu_item' );
wp-includes/default-filters.php 381
add_action( 'delete_post', '_wp_delete_customize_changeset_dependent_auto_drafts' );
wp-includes/default-filters.php 465
add_action( 'delete_post', 'delete_get_calendar_cache' );
wp-includes/ms-default-filters.php 78
add_action( 'delete_post', '_update_posts_count_on_delete' );
wp-includes/ms-default-filters.php 79
add_action( 'delete_post', '_update_blog_date_on_post_delete' );
wp-includes/nav-menu.php 1128
remove_action( 'delete_post', '_wp_delete_customize_changeset_dependent_auto_drafts' );
wp-includes/nav-menu.php 1140
add_action( 'delete_post', '_wp_delete_customize_changeset_dependent_auto_drafts' );