Automattic\WooCommerce\Internal\Features

FeaturesController::set_change_feature_enable_nonce()publicWC 1.0

Set the feature nonce to be sent from client side.

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

Хуков нет.

Возвращает

Массив.

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

$FeaturesController = new FeaturesController();
$FeaturesController->set_change_feature_enable_nonce( $settings );
$settings(массив) (обязательный)
Component settings.

Код FeaturesController::set_change_feature_enable_nonce() WC 9.3.3

public function set_change_feature_enable_nonce( $settings ) {
	$settings['_feature_nonce'] = wp_create_nonce( 'change_feature_enable' );
	return $settings;
}