Inventory_Presser_Vehicle::delete_attachments( int $post_id = null )

delete_attachments


Description Description

Deletes all a post's attachments.


Top ↑

Parameters Parameters

$post_id

(int) (Optional) A post ID

Default value: null


Top ↑

Return Return

(void)


Top ↑

Source Source

File: includes/class-vehicle.php

		/**
		 * photo_count
		 * 
		 * Returns the number of image attachments to this post. 
		 *
		 * @deprecated 12.0.0 Use invp_get_the_photo_count() instead.
		 * @return int The number of attachments to this post.
		 */
		function photo_count()
		{
			return invp_get_the_photo_count( $this->post_ID );
		}
		
		/**
		 * post_meta_value_is_number
		 * 
		 * Indicates whether or not a provided $post_meta_key is a number data
		 * type.
		 *
		 * @deprecated 12.0.0 Use INVP::meta_value_is_number() instead.
		 * @param  string $post_meta_key
		 * @return bool True if the given $post_meta_key is a number data type.
		 */