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

Filters whether a post deletion should take place.


Description Description


Parameters Parameters

$delete

(bool|null) Whether to go forward with deletion.

$post

(WP_Post) Post object.

$force_delete

(bool) Whether to bypass the trash.


Top ↑

Source Source

File: wp-includes/post.php

View on Trac


Top ↑

Changelog Changelog

Changelog
Version Description
4.4.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.