Make "refresh subscriptions" nonce available to WooCommerce Admin

This commit is contained in:
Dan Q 2023-09-21 14:59:26 +01:00
parent 69929ba050
commit 3320f581f3
1 changed files with 3 additions and 0 deletions

View File

@ -234,6 +234,9 @@ class Settings {
$settings['allowMarketplaceSuggestions'] = WC_Marketplace_Suggestions::allow_suggestions(); $settings['allowMarketplaceSuggestions'] = WC_Marketplace_Suggestions::allow_suggestions();
$settings['connectNonce'] = wp_create_nonce( 'connect' ); $settings['connectNonce'] = wp_create_nonce( 'connect' );
$settings['wcpay_welcome_page_connect_nonce'] = wp_create_nonce( 'wcpay-connect' ); $settings['wcpay_welcome_page_connect_nonce'] = wp_create_nonce( 'wcpay-connect' );
$settings['wc_helper_nonces'] = array(
'refresh' => wp_create_nonce( 'refresh' ),
);
$settings['features'] = $this->get_features(); $settings['features'] = $this->get_features();