AnsPress_Uploader::deleted_attachment( integer $post_id )
Description #
Update users temporary attachment count before a attachment deleted.
Parameters #
- $post_idinteger (Required) Post ID.
Source #
File: includes/upload.php
public static function deleted_attachment( $post_id ) { $_post = get_post( $post_id ); if ( 'attachment' === $_post->post_type ) { ap_update_user_temp_media_count(); ap_update_post_attach_ids( $_post->post_parent ); } }
Expand full source code Collapse full source code View on GitHub: includes/upload.php:60
Add your comment