AnsPress_Uploader::deleted_attachment( integer $post_id )

Description #

Update users temporary attachment count before a attachment deleted.

Parameters #

  • $post_id
    integer (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 );
		}
	}

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Add your comment