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
-
Whether to go forward with deletion.
- $post
-
Post object.
- $force_delete
-
Whether to bypass the Trash.
Source
File: wp-includes/post.php
Changelog
Version | Description |
---|---|
4.4.0 | Introduced. |