WordPress Hooks Explorer

Listing all hooks extracted WordPress Core


Details about pre_delete_post

Back to home

Files

Filename Hook Type Line Number PHP Doc
wp-includes/post.php apply_filters 3391 /**
* Filters whether a post deletion should take place.
*
* @since 4.4.0
*
* @param WP_Post|false|null $delete Whether to go forward with deletion.
* @param WP_Post $post Post object.
* @param bool $force_delete Whether to bypass the Trash.
*/

Hook Parameters

Parameter Type Name Description
WP_Post|false|null $delete Whether to go forward with deletion.
WP_Post $post Post object.
bool $force_delete Whether to bypass the Trash.