CTX Feed – WooCommerce Product Feed Manager Plugin - Version 4.4.6

Version Description

(2021-06-24) = * Added: Rank math GTIN attribute has been added.

Download this release

Release Info

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

Code changes from version 4.4.5 to 4.4.6

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.4.5
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -516,6 +516,9 @@ Using pro version:
516
 
517
  == Changelog ==
518
 
 
 
 
519
  = 4.4.5 (2021-06-23) =
520
  * Added: Log file download feature has been added.
521
 
5
  Requires at least: 3.6
6
  Tested Up To: 5.7
7
  Requires PHP: 5.6
8
+ Stable tag: 4.4.6
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
516
 
517
  == Changelog ==
518
 
519
+ = 4.4.6 (2021-06-24) =
520
+ * Added: Rank math GTIN attribute has been added.
521
+
522
  = 4.4.5 (2021-06-23) =
523
  * Added: Log file download feature has been added.
524
 
includes/classes/class-woo-feed-dropdown.php CHANGED
@@ -566,6 +566,22 @@ class Woo_Feed_Dropdown {
566
  }
567
  }
568
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
569
  if ( class_exists( 'WC_Subscriptions' ) ) {
570
  $attributes = array_merge( $attributes,
571
  [
566
  }
567
  }
568
 
569
+ // Rank Math GTIN attribute
570
+ if( class_exists( 'RankMathPro' ) ) {
571
+
572
+ //add rankmath gtin array in the dropdown
573
+ if ( in_array( 'rank_math_description', array_keys($attributes) ) ) {
574
+ $search_key = 'rank_math_description';
575
+ }else {
576
+ $search_key = 'description_with_html';
577
+ }
578
+ $rankmath_gtin = [
579
+ 'rank_math_gtin' => esc_html__( 'GTIN [Rank Math GTIN]', 'woo-feed' ),
580
+ ];
581
+
582
+ $attributes = woo_feed_positioning_attribute_value( $attributes, $search_key, $rankmath_gtin );
583
+ }
584
+
585
  if ( class_exists( 'WC_Subscriptions' ) ) {
586
  $attributes = array_merge( $attributes,
587
  [
includes/classes/class-woo-feed-products-v3.php CHANGED
@@ -3731,4 +3731,19 @@ class Woo_Feed_Products_v3
3731
  return apply_filters('yoast_mpn_attribute_value', $yoast_mpn_value, $product );
3732
  }
3733
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3734
  }
3731
  return apply_filters('yoast_mpn_attribute_value', $yoast_mpn_value, $product );
3732
  }
3733
 
3734
+ /**
3735
+ * Rank Math GTIN Identifier attribute
3736
+ *
3737
+ * @param WC_Product $product
3738
+ *
3739
+ * @return mixed
3740
+ * @since 5.2.66
3741
+ */
3742
+ protected function rank_math_gtin( $product ) {
3743
+ $rankmath_gtin_value = get_post_meta( $product->get_id(), '_rank_math_gtin_code' );
3744
+ $rankmath_gtin_value = ! empty($rankmath_gtin_value) && is_array($rankmath_gtin_value) ? $rankmath_gtin_value[0] : '';
3745
+
3746
+ return apply_filters('rankmath_gtin_attribute_value', $rankmath_gtin_value, $product );
3747
+ }
3748
+
3749
  }
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.4.5
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.4.5' );
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.4.6
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.4.6' );
43
  }
44
 
45
  if ( ! defined( 'WOO_FEED_FREE_FILE' ) ) {