\Barn2\Plugin\WC_Default_Quantity\AdminProduct_Manager

Responsible for the default quantity settings for products in the admin.

Summary

Methods
Properties
Constants
register()
save_product_quantity_field()
get_default_quantity()
render_product_default_quantity_field()
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()

save_product_quantity_field()

save_product_quantity_field(\WC_Product  $product)

Save default qty for product

Parameters

\WC_Product $product

get_default_quantity()

get_default_quantity(integer  $product_id): mixed

Get default qty for product

Parameters

integer $product_id

Returns

mixed

render_product_default_quantity_field()

render_product_default_quantity_field()

Render default qty field at product tabs