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