Product_Sample implements Registerable, Premium_Service
WooCommerce Product Table integration.
Tags
Interfaces, Classes and Traits
- Registerable
- Premium_Service
Table of Contents
- maybe_allow_sample_backorder() : bool
- Allow backorders for sample products when setting is enabled.
- register() : mixed
- {@inheritdoc}
Methods
maybe_allow_sample_backorder()
Allow backorders for sample products when setting is enabled.
public
maybe_allow_sample_backorder(bool $backorders_allowed, int $product_id, WC_Product $product) : bool
Parameters
- $backorders_allowed : bool
- $product_id : int
- $product : WC_Product
Tags
Return values
bool —register()
{@inheritdoc}
public
register() : mixed