Automattic\WooCommerce\Internal\Features

FeaturesController::set_change_feature_enable_noncepublicWC 1.0

Set the feature nonce to be sent from client side.

Method of the class: FeaturesController{}

No Hooks.

Returns

Array.

Usage

$FeaturesController = new FeaturesController();
$FeaturesController->set_change_feature_enable_nonce( $settings );
$settings(array) (required)
Component settings.

FeaturesController::set_change_feature_enable_nonce() code WC 9.9.5

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