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

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

Fires immediately before a post is deleted from the database.

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

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

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

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

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

wp-includes/default-filters.php 380
add_action( 'delete_post', '_wp_delete_post_menu_item' );
wp-includes/default-filters.php 383
add_action( 'delete_post', '_wp_delete_customize_changeset_dependent_auto_drafts' );
wp-includes/default-filters.php 467
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 1100
remove_action( 'delete_post', '_wp_delete_customize_changeset_dependent_auto_drafts' );
wp-includes/nav-menu.php 1112
add_action( 'delete_post', '_wp_delete_customize_changeset_dependent_auto_drafts' );