apply_filters( 'pre_delete_post', bool $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 |
---|---|
WP-4.4.0 | Introduced. |