WordPress at Your Fingertips
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_4790', 10, 3 );
function filter_function_name_4790( $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 3191
$check = apply_filters( 'pre_delete_post', null, $post, $force_delete );

Where in WP core the hook is used WordPress

Usage not found.