diff --git a/plugins/woocommerce-admin/src/Loader.php b/plugins/woocommerce-admin/src/Loader.php index 368a277c493..2462b368c0a 100644 --- a/plugins/woocommerce-admin/src/Loader.php +++ b/plugins/woocommerce-admin/src/Loader.php @@ -1099,7 +1099,7 @@ class Loader { $settings['wcAdminAssetUrl'] = plugins_url( 'images/', dirname( __DIR__ ) . '/woocommerce-admin.php' ); $settings['wcVersion'] = WC_VERSION; $settings['siteUrl'] = site_url(); - $settings['shopUrl'] = get_permalink( woocommerce_get_page_id( 'shop' ) ); + $settings['shopUrl'] = get_permalink( wc_get_page_id( 'shop' ) ); $settings['dateFormat'] = get_option( 'date_format' ); $settings['plugins'] = array( 'installedPlugins' => PluginsHelper::get_installed_plugin_slugs(),