CTX Feed – WooCommerce Product Feed Manager Plugin - Version 4.3.77

Version Description

(2021-04-29) = * Fixed: Yoast canonical link issue has been fixed.

Download this release

Release Info

Developer wahid0003
Plugin Icon 128x128 CTX Feed – WooCommerce Product Feed Manager Plugin
Version 4.3.77
Comparing to
See all releases

Code changes from version 4.3.76 to 4.3.77

README.txt CHANGED
@@ -5,7 +5,7 @@ Tags: Product Feed, WooCommerce, Google Shopping, Google Merchant, Facebook Cata
5
  Requires at least: 3.6
6
  Tested Up To: 5.7
7
  Requires PHP: 5.6
8
- Stable tag: 4.3.76
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -501,6 +501,9 @@ Using pro version:
501
 
502
  == Changelog ==
503
 
 
 
 
504
  = 4.3.76 (2021-04-27) =
505
  * Fixed: Output Type auto select issue fixed.
506
 
5
  Requires at least: 3.6
6
  Tested Up To: 5.7
7
  Requires PHP: 5.6
8
+ Stable tag: 4.3.77
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
501
 
502
  == Changelog ==
503
 
504
+ = 4.3.77 (2021-04-29) =
505
+ * Fixed: Yoast canonical link issue has been fixed.
506
+
507
  = 4.3.76 (2021-04-27) =
508
  * Fixed: Output Type auto select issue fixed.
509
 
includes/classes/class-woo-feed-dropdown.php CHANGED
@@ -509,6 +509,13 @@ class Woo_Feed_Dropdown {
509
  ];
510
 
511
  $attributes = woo_feed_positioning_attribute_value( $attributes, $search_key, $yoast_description );
 
 
 
 
 
 
 
512
  }
513
 
514
  if ( class_exists( 'RankMath' ) ) {
509
  ];
510
 
511
  $attributes = woo_feed_positioning_attribute_value( $attributes, $search_key, $yoast_description );
512
+
513
+ //add yoast canonical array in the dropdown
514
+ $yoast_canonical_url = [
515
+ 'yoast_canonical_url' => esc_html__( 'Canonical URL [Yoast SEO]', 'woo-feed' ),
516
+ ];
517
+
518
+ $attributes = woo_feed_positioning_attribute_value( $attributes, 'canonical_link', $yoast_canonical_url );
519
  }
520
 
521
  if ( class_exists( 'RankMath' ) ) {
includes/classes/class-woo-feed-products-v3.php CHANGED
@@ -1608,6 +1608,23 @@ class Woo_Feed_Products_v3
1608
  return apply_filters('woo_feed_filter_product_yoast_wpseo_title', $title, $product, $this->config);
1609
  }
1610
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1611
  /**
1612
  * Get Rank Math Product Title
1613
  *
1608
  return apply_filters('woo_feed_filter_product_yoast_wpseo_title', $title, $product, $this->config);
1609
  }
1610
 
1611
+ /**
1612
+ * Get Yoast Canonical URL
1613
+ *
1614
+ * @param WC_Product $product
1615
+ *
1616
+ * @return mixed
1617
+ * @since 4.3.77
1618
+ */
1619
+ protected function yoast_canonical_url( $product ) {
1620
+ $yoast_canonical_url = '';
1621
+ if ( class_exists('WPSEO_Frontend') || class_exists( 'WPSEO_Premium' ) ) { //when yoast premium plugin is istalled
1622
+ $yoast_canonical_url = get_post_meta( $product->get_id(), '_yoast_wpseo_canonical', true );
1623
+ }
1624
+
1625
+ return apply_filters('woo_feed_filter_product_yoast_canonical_url', $yoast_canonical_url, $product, $this->config);
1626
+ }
1627
+
1628
  /**
1629
  * Get Rank Math Product Title
1630
  *
woo-feed.php CHANGED
@@ -10,7 +10,7 @@
10
  * Plugin Name: CTX Feed
11
  * Plugin URI: https://webappick.com/
12
  * Description: Easily generate woocommerce product feed for any marketing channel like Google Shopping(Merchant), Facebook Remarketing, Bing, eBay & more. Support 100+ Merchants.
13
- * Version: 4.3.76
14
  * Author: WebAppick
15
  * Author URI: https://webappick.com/
16
  * License: GPL v2
@@ -39,7 +39,7 @@ if ( ! defined( 'WOO_FEED_FREE_VERSION' ) ) {
39
  * @var string
40
  * @since 3.1.6
41
  */
42
- define( 'WOO_FEED_FREE_VERSION', '4.3.76' );
43
  }
44
 
45
  if ( ! defined( 'WOO_FEED_FREE_FILE' ) ) {
10
  * Plugin Name: CTX Feed
11
  * Plugin URI: https://webappick.com/
12
  * Description: Easily generate woocommerce product feed for any marketing channel like Google Shopping(Merchant), Facebook Remarketing, Bing, eBay & more. Support 100+ Merchants.
13
+ * Version: 4.3.77
14
  * Author: WebAppick
15
  * Author URI: https://webappick.com/
16
  * License: GPL v2
39
  * @var string
40
  * @since 3.1.6
41
  */
42
+ define( 'WOO_FEED_FREE_VERSION', '4.3.77' );
43
  }
44
 
45
  if ( ! defined( 'WOO_FEED_FREE_FILE' ) ) {