Add wum-installed parameter to the connect URL

This commit is contained in:
Muhammad Anas 2024-03-19 15:20:49 +05:00
parent 2fa0469e08
commit 4c55038b03
2 changed files with 5 additions and 0 deletions

View File

@ -445,6 +445,10 @@ const connectUrl = (): string => {
return appendURLParams( wccomSettings.connectURL, [
[ 'redirect_admin_url', encodeURIComponent( window.location.href ) ],
[
'wum-installed',
wccomSettings.wooUpdateManagerInstalled ? '1' : '0',
],
] );
};

View File

@ -83,6 +83,7 @@ class WC_Helper {
'section' => 'helper',
'wc-helper-connect' => 1,
'wc-helper-nonce' => wp_create_nonce( 'connect' ),
'wum-installed' => WC_Woo_Update_Manager_Plugin::is_plugin_installed() ? '1' : '0',
),
admin_url( 'admin.php' )
);