Inventory_Presser_Admin_Photo_Arranger::delete_attachment_handler( mixed $post_id, mixed $post )
delete_attachment_handler
On This Page
Parameters Parameters
- $post_id
-
(mixed) (Required)
- $post
-
(mixed) (Required)
Return Return
(void)
Source Source
File: includes/admin/class-admin-photo-arranger.php
public function delete_attachment_handler( $post_id, $post ) { $attachment = get_post( $post_id ); if ( empty( $attachment->post_parent ) ) { return; } $this->remove_attachment_from_gallery( $post_id, $attachment->post_parent ); }
Expand full source codeCollapse full source codeView on Github