WordPress at a glance
filter is not described

pre_delete_post filter-hook . WP 4.4.0

Filters whether a post deletion should take place.


add_filter( 'pre_delete_post', 'filter_function_name_8978', 10, 3 );
function filter_function_name_8978( $delete, $post, $force_delete ){
	// filter...

	return $delete;
Whether to go forward with deletion.
Post object.
Whether to bypass the trash.

Where the hook is called

wp-includes/post.php 2800
$check = apply_filters( 'pre_delete_post', null, $post, $force_delete );

Where the hook is used (in WP core)

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