WordPress at a glance
function is not described

Automattic\WooCommerce\Admin\API\Reports\Variations

Controller::_get_stock_status() protected WC 1.0

Get stock status column export value.

{} It's a method of the class: Controller{}

No Hooks.

Return

String. Nothing.

Usage

// protected - for code of main (parent) or child class
$result = $this->_get_stock_status( $status );
$status(array) (required)
Stock status from report row.

Code of Controller::_get_stock_status() WC 5.2.2

<?php
protected function _get_stock_status( $status ) {
	$statuses = wc_get_product_stock_status_options();

	return isset( $statuses[ $status ] ) ? $statuses[ $status ] : '';
}