Inventory_Presser_Photo_Numberer::save_meta_photo_number( int $post_id, int $parent_post_id, int $sequence_number = null )

save_meta_photo_number


Description Description

Saves a sequence number like 1, 2, or 99 in attachment post meta. This number dictates the order in which the photos will be disabled in sliders and galleries.


Top ↑

Parameters Parameters

$post_id

(Required) The post ID of the attachment

$parent_post_id

(Required) The post ID of the vehicle to which $post_id is a child

$sequence_number

(Optional) The sequence number to save. Do not provide to append.

Default value: null


Top ↑

Return Return

(void)


Top ↑

Source Source

File: includes/class-photo-numberer.php