Skip to content

Commit

Permalink
Update woocommerce.com to woo.com in PHP files
Browse files Browse the repository at this point in the history
  • Loading branch information
ianlin committed Nov 6, 2023
1 parent b2fee78 commit c759c32
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion includes/class-wc-google-analytics.php
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ public function show_options_info() {
/**
* Hooks into woocommerce_tracker_data and tracks some of the analytic settings (just enabled|disabled status)
* only if you have opted into WooCommerce tracking
* https://woocommerce.com/usage-tracking/
* https://woo.com/usage-tracking/
*
* @param array $data Current WC tracker data.
* @return array Updated WC Tracker data.
Expand Down
6 changes: 3 additions & 3 deletions woocommerce-google-analytics-integration.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Plugin URI: https://wordpress.org/plugins/woocommerce-google-analytics-integration/
* Description: Allows Google Analytics tracking code to be inserted into WooCommerce store pages.
* Author: WooCommerce
* Author URI: https://woocommerce.com
* Author URI: https://woo.com
* Version: 1.8.8
* WC requires at least: 6.8
* WC tested up to: 8.2
Expand Down Expand Up @@ -107,7 +107,7 @@ public function get_settings_url() {
public function plugin_links( $links ) {
$settings_url = $this->get_settings_url();
$support_url = 'https://wordpress.org/support/plugin/woocommerce-google-analytics-integration';
$docs_url = 'https://woocommerce.com/document/google-analytics-integration/?utm_source=wordpress&utm_medium=all-plugins-page&utm_campaign=doc-link&utm_content=woocommerce-google-analytics-integration';
$docs_url = 'https://woo.com/document/google-analytics-integration/?utm_source=wordpress&utm_medium=all-plugins-page&utm_campaign=doc-link&utm_content=woocommerce-google-analytics-integration';

$plugin_links = array(
'<a href="' . esc_url( $settings_url ) . '">' . esc_html__( 'Settings', 'woocommerce-google-analytics-integration' ) . '</a>',
Expand Down Expand Up @@ -202,7 +202,7 @@ public function maybe_show_ga_pro_notices() {
$notice_html = '<strong>' . esc_html__( 'Get detailed insights into your sales with Google Analytics Pro', 'woocommerce-google-analytics-integration' ) . '</strong><br><br>';

/* translators: 1: href link to GA pro */
$notice_html .= sprintf( __( 'Add advanced tracking for your sales funnel, coupons and more. [<a href="%s" target="_blank">Learn more</a> &gt;]', 'woocommerce-google-analytics-integration' ), 'https://woocommerce.com/products/woocommerce-google-analytics-pro/?utm_source=woocommerce-google-analytics-integration&utm_medium=product&utm_campaign=google%20analytics%20free%20to%20pro%20extension%20upsell' );
$notice_html .= sprintf( __( 'Add advanced tracking for your sales funnel, coupons and more. [<a href="%s" target="_blank">Learn more</a> &gt;]', 'woocommerce-google-analytics-integration' ), 'https://woo.com/products/woocommerce-google-analytics-pro/?utm_source=woocommerce-google-analytics-integration&utm_medium=product&utm_campaign=google%20analytics%20free%20to%20pro%20extension%20upsell' );

WC_Admin_Notices::add_custom_notice( 'woocommerce_google_analytics_pro_notice', $notice_html );
update_option( 'woocommerce_google_analytics_pro_notice_shown', true );
Expand Down

0 comments on commit c759c32

Please sign in to comment.