WC_Product_Variation::get_backorders( string $context = 'view' )
Get backorders.
Description Description
Parameters Parameters
- $context
-
(Optional) What the value is for. Valid values are view and edit.
Default value: 'view'
Return Return
(string) yes no or notify
Source Source
File: includes/class-wc-product-variation.php
public function get_backorders( $context = 'view' ) {
$value = $this->get_prop( 'backorders', $context );
// Inherit value from parent.
if ( 'view' === $context && 'parent' === $this->get_manage_stock() ) {
$value = apply_filters( $this->get_hook_prefix() . 'backorders', $this->parent_data['backorders'], $this );
}
return $value;
}
Changelog Changelog
| Version | Description |
|---|---|
| 3.0.0 | Introduced. |