WC_Product_Variation::get_backorders PHP Method

get_backorders() public method

Get backorders.
Since: 2.7.0
public get_backorders ( string $context = 'view' ) : string
$context string
return string yes no or notify
    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 = $this->parent_data['backorders'];
        }
        return $value;
    }