pre_delete_attachment

最后更新于:2021-11-27 18:46:30

apply_filters( ‘pre_delete_attachment’, bool|null $delete, GC_Post $post, bool $force_delete )

Filters whether an attachment deletion should take place.

参数

$delete

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

$post

(GC_Post)
Post object.

$force_delete

(bool)
Whether to bypass the Trash.

源文件

文件: gc-includes/post.php

View on Trac