Automattic\WooCommerce\Internal\CostOfGoodsSold

CostOfGoodsSoldController::add_feature_definition()publicWC 1.0

Add the feature information for the features settings page.

Метод класса: CostOfGoodsSoldController{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

$CostOfGoodsSoldController = new CostOfGoodsSoldController();
$CostOfGoodsSoldController->add_feature_definition( $features_controller );
$features_controller(FeaturesController) (обязательный)
The instance of FeaturesController to use.

Код CostOfGoodsSoldController::add_feature_definition() WC 9.7.1

public function add_feature_definition( $features_controller ) {
	$definition = array(
		'description'        => __( 'Allows entering cost of goods sold information for products. Feature under active development, enable only for testing purposes', 'woocommerce' ),
		'is_experimental'    => true,
		'enabled_by_default' => false,
	);

	$features_controller->add_feature_definition(
		'cost_of_goods_sold',
		__( 'Cost of Goods Sold', 'woocommerce' ),
		$definition
	);
}