Inventory_Presser_Photo_Numberer::save_meta_vin( int $post_id, int $parent_post_id )
Saves the vehicle VIN in attachment meta when an attachment is uploaded to a vehicle post.
Parameters Parameters
- $post_id
-
(int) (Required) The post ID of the attachment.
- $parent_post_id
-
(int) (Required) The post ID of the vehicle to which $post_id is a child.
Return Return
(void)
Source Source
File: includes/class-photo-numberer.php
public 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 ); }
Expand full source codeCollapse full source codeView on Github