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