On this page
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
Source
File: wp-includes/post.php. View all references
$check = apply_filters( 'pre_delete_post', null, $post, $force_delete );
Related
Used By
| Used By | Description |
|---|---|
| wp_delete_post() wp-includes/post.php | Trashes or deletes a post or page. |
Changelog
| Version | Description |
|---|---|
| 4.4.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/pre_delete_post