\Barn2\Plugin\WC_Lead_Time\AdminProduct_Data

Handles the lead time settings on the Edit Product screen, in the Product Data metabox.

Summary

Methods
Properties
Constants
register()
add_field()
save_field()
add_field_to_variations()
save_variation_fields()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

register()

register()

Register hooks and filters.

add_field()

add_field()

Add the lead time field to Product Data.

save_field()

save_field(  $post_id)

Save the lead time field.

Parameters

$post_id

add_field_to_variations()

add_field_to_variations(  $loop,  $variation_data,  $variation)

Add the lead time field to product variations.

Parameters

$loop
$variation_data
$variation

save_variation_fields()

save_variation_fields(  $variation_id,  $i)

Save the variation lead time fields.

Parameters

$variation_id
$i