Version Description
(2020-11-22) = * Added : Rank Math SEO plugin support.
Download this release
Release Info
Developer | wahid0003 |
Plugin | CTX Feed – WooCommerce Product Feed Manager Plugin |
Version | 4.2.3 |
Comparing to | |
See all releases |
Code changes from version 4.2.2 to 4.2.3
- README.txt +4 -1
- includes/classes/class-woo-feed-products-v3.php +77 -0
- woo-feed.php +2 -2
README.txt
CHANGED
@@ -8,7 +8,7 @@ Google Product Review feed, product variations, rakuteen, shopping, skroutz, TSV
|
|
8 |
Requires at least: 3.6
|
9 |
Tested Up To: 5.5
|
10 |
Requires PHP: 5.6
|
11 |
-
Stable tag: 4.2.
|
12 |
License: GPLv2 or later
|
13 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
14 |
|
@@ -311,6 +311,9 @@ Using pro version:
|
|
311 |
|
312 |
== Changelog ==
|
313 |
|
|
|
|
|
|
|
314 |
= 4.2.2 (2020-11-19) =
|
315 |
* Tweak : Performance enhancement.
|
316 |
* Fix: Spacing issue solved.
|
8 |
Requires at least: 3.6
|
9 |
Tested Up To: 5.5
|
10 |
Requires PHP: 5.6
|
11 |
+
Stable tag: 4.2.3
|
12 |
License: GPLv2 or later
|
13 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
14 |
|
311 |
|
312 |
== Changelog ==
|
313 |
|
314 |
+
= 4.2.3 (2020-11-22) =
|
315 |
+
* Added : Rank Math SEO plugin support.
|
316 |
+
|
317 |
= 4.2.2 (2020-11-19) =
|
318 |
* Tweak : Performance enhancement.
|
319 |
* Fix: Spacing issue solved.
|
includes/classes/class-woo-feed-products-v3.php
CHANGED
@@ -7,6 +7,8 @@
|
|
7 |
* Time: 5:10 PM
|
8 |
*/
|
9 |
|
|
|
|
|
10 |
if ( ! defined('ABSPATH') ) {
|
11 |
die();
|
12 |
}
|
@@ -1397,6 +1399,81 @@ class Woo_Feed_Products_v3
|
|
1397 |
return $this->title($product);
|
1398 |
}
|
1399 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1400 |
/**
|
1401 |
* Get All In One Product Title
|
1402 |
*
|
7 |
* Time: 5:10 PM
|
8 |
*/
|
9 |
|
10 |
+
use RankMath\Helper;
|
11 |
+
|
12 |
if ( ! defined('ABSPATH') ) {
|
13 |
die();
|
14 |
}
|
1399 |
return $this->title($product);
|
1400 |
}
|
1401 |
|
1402 |
+
/**
|
1403 |
+
* Get Rank Math Product Title
|
1404 |
+
*
|
1405 |
+
* @param WC_Product $product
|
1406 |
+
*
|
1407 |
+
* @return mixed
|
1408 |
+
* @since 5.1.3
|
1409 |
+
*/
|
1410 |
+
protected function rank_math_title($product) {
|
1411 |
+
$rank_title = '';
|
1412 |
+
$post_title = '';
|
1413 |
+
$page = '';
|
1414 |
+
$sep = '';
|
1415 |
+
$sitemap = '';
|
1416 |
+
if( class_exists('RankMath') ) {
|
1417 |
+
$title = get_post_meta( $product->get_id(), 'rank_math_title', true );
|
1418 |
+
if( empty($title) ) {
|
1419 |
+
$title_format = Helper::get_settings( "titles.pt_product_title" );
|
1420 |
+
$title_format = $title_format ? $title_format : '%title%';
|
1421 |
+
$sep = Helper::get_settings( 'titles.title_separator' );
|
1422 |
+
|
1423 |
+
$rank_title = str_replace('%title%', $product->get_title(), $title_format);
|
1424 |
+
$rank_title = str_replace('%sep%', $sep, $rank_title);
|
1425 |
+
$rank_title = str_replace('%page%', '', $rank_title);
|
1426 |
+
$rank_title = str_replace('%sitename%', get_bloginfo('name'), $rank_title);
|
1427 |
+
}else {
|
1428 |
+
$rank_title = $title;
|
1429 |
+
}
|
1430 |
+
}
|
1431 |
+
|
1432 |
+
return $rank_title;
|
1433 |
+
}
|
1434 |
+
|
1435 |
+
/**
|
1436 |
+
* Get Rank Math Product Description
|
1437 |
+
*
|
1438 |
+
* @param WC_Product $product
|
1439 |
+
*
|
1440 |
+
* @return mixed
|
1441 |
+
* @since 5.1.3
|
1442 |
+
*/
|
1443 |
+
protected function rank_math_description($product) {
|
1444 |
+
$description = '';
|
1445 |
+
if( class_exists('RankMath') ) {
|
1446 |
+
$description = get_post_meta($product->get_id(), 'rank_math_description');
|
1447 |
+
$desc_format = Helper::get_settings( "titles.pt_post_description" );
|
1448 |
+
|
1449 |
+
if( empty($description) ) {
|
1450 |
+
if( !empty($desc_format) && strpos( (string) $desc_format, 'excerpt') !== false ) {
|
1451 |
+
$description = str_replace('%excerpt%', get_the_excerpt( $product->get_id() ), $desc_format);
|
1452 |
+
}
|
1453 |
+
|
1454 |
+
// Get Variation Description
|
1455 |
+
if ( $product->is_type( 'variation' ) && empty( $description ) ) {
|
1456 |
+
$parent = wc_get_product( $product->get_parent_id() );
|
1457 |
+
$description = $parent->get_description();
|
1458 |
+
}
|
1459 |
+
|
1460 |
+
}
|
1461 |
+
|
1462 |
+
if(is_array($description)) {
|
1463 |
+
$description = reset($description);
|
1464 |
+
}
|
1465 |
+
|
1466 |
+
$description = $this->remove_short_codes( $description );
|
1467 |
+
|
1468 |
+
//strip tags and spacial characters
|
1469 |
+
$strip_description = wp_strip_all_tags(wp_specialchars_decode($description));
|
1470 |
+
|
1471 |
+
return !empty(strlen($strip_description)) && 0 < strlen($strip_description) ? $strip_description : $description;
|
1472 |
+
}
|
1473 |
+
|
1474 |
+
return $description;
|
1475 |
+
}
|
1476 |
+
|
1477 |
/**
|
1478 |
* Get All In One Product Title
|
1479 |
*
|
woo-feed.php
CHANGED
@@ -10,7 +10,7 @@
|
|
10 |
* Plugin Name: WooCommerce Product 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.2.
|
14 |
* Author: WebAppick
|
15 |
* Author URI: https://webappick.com/
|
16 |
* License: GPL v2
|
@@ -38,7 +38,7 @@ if ( ! defined( 'WOO_FEED_FREE_VERSION' ) ) {
|
|
38 |
* @var string
|
39 |
* @since 3.1.6
|
40 |
*/
|
41 |
-
define( 'WOO_FEED_FREE_VERSION', '4.2.
|
42 |
}
|
43 |
|
44 |
if ( ! defined( 'WOO_FEED_FREE_FILE' ) ) {
|
10 |
* Plugin Name: WooCommerce Product 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.2.3
|
14 |
* Author: WebAppick
|
15 |
* Author URI: https://webappick.com/
|
16 |
* License: GPL v2
|
38 |
* @var string
|
39 |
* @since 3.1.6
|
40 |
*/
|
41 |
+
define( 'WOO_FEED_FREE_VERSION', '4.2.3' );
|
42 |
}
|
43 |
|
44 |
if ( ! defined( 'WOO_FEED_FREE_FILE' ) ) {
|