Inventory_Presser_Photo_Numberer::save_meta_vin( int $post_id, $parent_post_id )
save_meta_vin
Contents
Description Description
Saves the vehicle VIN in attachment meta when an attachment is uploaded to a vehicle post.
Parameters Parameters
- $post_id
-
(int) (Required)
- $attachment
-
(int) (Required)
Return Return
(void)
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 ); }
Expand full source code Collapse full source code View on Github