Filters whether a post deletion should take place.
$checkWP_Post|false|null$postWP_Post$force_deleteboolwp-includes/post.php:3809wp_delete_post() * @since 4.4.0 * * @param WP_Post|false|null $check Whether to go forward with deletion. Anything other than null will short-circuit deletion. * @param WP_Post $post Post object. * @param bool $force_delete Whether to bypass the Trash. */ $check = apply_filters( 'pre_delete_post', null, $post, $force_delete ); if ( null !== $check ) { return $check; } /** * Fires before a post is deleted, at the start of wp_delete_post().Introduced in 4.4.0. 2 changes between 6.7.7 and 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
$check added.verified against source$delete removed.verified against source