apply_filters( "pre_delete_post", WP_Post|false|null $delete, WP_Post $post, bool $force_delete )

Filters whether a post deletion should take place.

Parameters

$delete

WP_Post|false|null

Whether to go forward with deletion.

$post

WP_Post

Post object.

$force_delete

bool

Whether to bypass the Trash.

Source

File: wp-includes/post.php.

View all references

$check = apply_filters( "pre_delete_post", null, $post, $force_delete );

Leave a Reply

Your email address will not be published. Required fields are marked *