Changeset 47448 for trunk/src/wp-includes/post.php
- Timestamp:
- 03/10/2020 10:46:12 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/post.php
r47394 r47448 5621 5621 } 5622 5622 5623 /** 5624 * Filters whether an attachment deletion should take place. 5625 * 5626 * @since 5.5.0 5627 * 5628 * @param bool|null $delete Whether to go forward with deletion. 5629 * @param WP_Post $post Post object. 5630 * @param bool $force_delete Whether to bypass the Trash. 5631 */ 5632 $check = apply_filters( 'pre_delete_attachment', null, $post, $force_delete ); 5633 if ( null !== $check ) { 5634 return $check; 5635 } 5636 5623 5637 delete_post_meta( $post_id, '_wp_trash_meta_status' ); 5624 5638 delete_post_meta( $post_id, '_wp_trash_meta_time' );
Note: See TracChangeset
for help on using the changeset viewer.