Automattic\WooCommerce\Internal\Features
FeaturesController::set_change_feature_enable_nonce
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() 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; }