AnsPress_Uploader::before_delete_attachment( integer $post_id )

Description #

Update users temproary attachment count before a attachment deleted.

Parameters #

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

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