Automattic\WooCommerce\Admin\Features\MultichannelMarketing

Init::add_feature_toggle()public staticWC 1.0

Add the feature toggle to the features settings.

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

Хуков нет.

Возвращает

Массив.

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

$result = Init::add_feature_toggle( $features );
$features(массив) (обязательный)
Feature sections.

Код Init::add_feature_toggle() WC 7.1.0

public static function add_feature_toggle( $features ) {
	$description = __(
		'Enables the new WooCommerce Multichannel Marketing experience in the Marketing page',
		'woocommerce'
	);

	$features[] = array(
		'title' => __( 'Marketing', 'woocommerce' ),
		'desc'  => $description,
		'id'    => self::TOGGLE_OPTION_NAME,
		'type'  => 'checkbox',
		'class' => '',
	);

	return $features;
}