Inventory_Presser_Photo_Numberer::save_meta_vin( int $post_id,  $parent_post_id )

save_meta_vin


Description Description

Saves the vehicle VIN in attachment meta when an attachment is uploaded to a vehicle post.


Top ↑

Parameters Parameters

$post_id

(int) (Required)

$attachment

(int) (Required)


Top ↑

Return Return

(void)


Top ↑

Source Source

File: includes/class-photo-numberer.php

	protected static function save_meta_vin( $post_id, $parent_post_id ) {
		$vin = invp_get_the_VIN( $parent_post_id );
		if ( empty( $vin ) ) {
			return;
		}
		update_post_meta( $post_id, apply_filters( 'invp_prefix_meta_key', 'vin' ), $vin );
	}