Inventory_Presser_Plugin::delete_attachments( int $post_id )

delete_attachments


Description Description

Action hook callback. Deletes all a vehicle's attachments when the vehicle is deleted.


Top ↑

Parameters Parameters

$post_id

(int) (Required)


Top ↑

Return Return

(void)


Top ↑

Source Source

File: inventory-presser.php

		//Register a meta field for a multi-value options array
		register_post_meta(
			INVP::POST_TYPE,
			apply_filters( 'invp_prefix_meta_key', 'options_array' ),
			array(
				'show_in_rest' => true,
				'single'       => false,
				'type'         => 'string',
			)
		);