Plugin Directory

Changeset 3451792


Ignore:
Timestamp:
02/02/2026 07:20:26 AM (4 weeks ago)
Author:
webtoffee
Message:

2.3.6

*[Fix] Feed export shows empty when excluding a category in the Facebook/Instagram catalog.

Location:
webtoffee-product-feed
Files:
1588 added
13 edited

Legend:

Unmodified
Added
Removed
  • webtoffee-product-feed/trunk/README.txt

    r3435872 r3451792  
    55Requires at least: 4.0
    66Tested up to: 6.9
    7 Stable tag: 2.3.5
     7Stable tag: 2.3.6
    88Requires PHP: 5.6
    99License: GPLv3 or later
     
    317317== Changelog ==
    318318
     319= 2.3.6 2026-01-29 =
     320*[Fix] Feed export shows empty when excluding a category in the Facebook/Instagram catalog.
     321
    319322= 2.3.5 2026-01-09 =
    320323*[Fix] - Replaced the maybe_unserialize() with our custom function 'wt_decode_data'
     
    607610== Upgrade Notice ==
    608611
    609 = 2.3.5 =
    610 *[Fix] - Replaced the maybe_unserialize() with our custom function 'wt_decode_data'
    611 *[Fix] - Category mapping dropdown was not rendering options properly.
    612 *[Compatibility] - Tested OK with WooCommerce 10.4.3
    613 *[Compatibility] - Tested OK with WordPress 6.9
     612= 2.3.6 =
     613*[Fix] Feed export shows empty when excluding a category in the Facebook/Instagram catalog.
  • webtoffee-product-feed/trunk/admin/modules/cron/cron.php

    r3435872 r3451792  
    10581058        }else
    10591059        {
    1060             $custom_interval=$cron_data['custom_interval']; //in minutes
     1060            $custom_interval = isset($cron_data['custom_interval']) ? absint($cron_data['custom_interval']) : 0; //in minutes
     1061            if ($custom_interval < 1) {
     1062                return 0; // invalid schedule, avoid division by zero
     1063            }
    10611064            $custom_interval_sec=($custom_interval*60); //in seconds
    10621065            if($last_start_time==0) //first time
  • webtoffee-product-feed/trunk/admin/modules/facebook/export/export.php

    r3395073 r3451792  
    108108
    109109            if (!empty($prod_exc_categories)) {
    110                 // Use include with all category IDs except excluded ones for better performance
    111                 $all_cat_ids = get_terms(array(
    112                     'taxonomy' => 'product_cat',
    113                     'fields' => 'ids',
    114                     'hide_empty' => false,
    115                 ));
    116                 $args['category'] = array_diff($all_cat_ids, $prod_exc_categories);
     110                $args['exclude_category'] = $prod_exc_categories;
    117111            }
    118112
  • webtoffee-product-feed/trunk/admin/modules/onbuy/export/export.php

    r3395073 r3451792  
    122122
    123123            if (!empty($prod_exc_categories)) {
    124                 // Use include with all category IDs except excluded ones for better performance
    125                 $all_cat_ids = get_terms(array(
    126                     'taxonomy' => 'product_cat',
    127                     'fields' => 'ids',
    128                     'hide_empty' => false,
    129                 ));
    130                 $args['category'] = array_diff($all_cat_ids, $prod_exc_categories);
     124                $args['exclude_category'] = $prod_exc_categories;
    131125            }
    132126
  • webtoffee-product-feed/trunk/admin/modules/pricespy/export/export.php

    r3395073 r3451792  
    154154
    155155                if (!empty($prod_exc_categories)) {
    156                     // Use include with all category IDs except excluded ones for better performance
    157                     $all_cat_ids = get_terms(array(
    158                         'taxonomy' => 'product_cat',
    159                         'fields' => 'ids',
    160                         'hide_empty' => false,
    161                     ));
    162                     $args['category'] = array_diff($all_cat_ids, $prod_exc_categories);
     156                    $args['exclude_category'] = $prod_exc_categories;
    163157                }
    164158
  • webtoffee-product-feed/trunk/admin/modules/rakuten/export/export.php

    r3395073 r3451792  
    110110   
    111111                if (!empty($prod_exc_categories)) {
    112                     // Use include with all category IDs except excluded ones for better performance
    113                     $all_cat_ids = get_terms(array(
    114                         'taxonomy' => 'product_cat',
    115                         'fields' => 'ids',
    116                         'hide_empty' => false,
    117                     ));
    118                     $args['category'] = array_diff($all_cat_ids, $prod_exc_categories);
     112                    $args['exclude_category'] = $prod_exc_categories;
    119113                }
    120114   
  • webtoffee-product-feed/trunk/admin/modules/shopmania/export/export.php

    r3395073 r3451792  
    110110   
    111111                if (!empty($prod_exc_categories)) {
    112                     // Use include with all category IDs except excluded ones for better performance
    113                     $all_cat_ids = get_terms(array(
    114                         'taxonomy' => 'product_cat',
    115                         'fields' => 'ids',
    116                         'hide_empty' => false,
    117                     ));
    118                     $args['category'] = array_diff($all_cat_ids, $prod_exc_categories);
     112                    $args['exclude_category'] = $prod_exc_categories;
    119113                }
    120114   
  • webtoffee-product-feed/trunk/admin/modules/snapchat/export/export.php

    r3395073 r3451792  
    163163
    164164                if (!empty($prod_exc_categories)) {
    165                     // Use include with all category IDs except excluded ones for better performance
    166                     $all_cat_ids = get_terms(array(
    167                         'taxonomy' => 'product_cat',
    168                         'fields' => 'ids',
    169                         'hide_empty' => false,
    170                     ));
    171                     $args['category'] = array_diff($all_cat_ids, $prod_exc_categories);
     165                    $args['exclude_category'] = $prod_exc_categories;
    172166                }
    173167
  • webtoffee-product-feed/trunk/admin/modules/tiktok/export/export.php

    r3395073 r3451792  
    163163
    164164                if (!empty($prod_exc_categories)) {
    165                     // Use include with all category IDs except excluded ones for better performance
    166                     $all_cat_ids = get_terms(array(
    167                         'taxonomy' => 'product_cat',
    168                         'fields' => 'ids',
    169                         'hide_empty' => false,
    170                     ));
    171                     $args['category'] = array_diff($all_cat_ids, $prod_exc_categories);
     165                    $args['exclude_category'] = $prod_exc_categories;
    172166                }
    173167
  • webtoffee-product-feed/trunk/admin/modules/vivino/export/export.php

    r3395073 r3451792  
    133133
    134134            if (!empty($prod_exc_categories)) {
    135                 // Use include with all category IDs except excluded ones for better performance
    136                 $all_cat_ids = get_terms(array(
    137                     'taxonomy' => 'product_cat',
    138                     'fields' => 'ids',
    139                     'hide_empty' => false,
    140                 ));
    141                 $args['category'] = array_diff($all_cat_ids, $prod_exc_categories);
     135                $args['exclude_category'] = $prod_exc_categories;
    142136            }
    143137
  • webtoffee-product-feed/trunk/admin/modules/yandex/export/export.php

    r3395073 r3451792  
    131131
    132132            if (!empty($prod_exc_categories)) {
    133                 // Use include with all category IDs except excluded ones for better performance
    134                 $all_cat_ids = get_terms(array(
    135                     'taxonomy' => 'product_cat',
    136                     'fields' => 'ids',
    137                     'hide_empty' => false,
    138                 ));
    139                 $args['category'] = array_diff($all_cat_ids, $prod_exc_categories);
     133                $args['exclude_category'] = $prod_exc_categories;
    140134            }
    141135
  • webtoffee-product-feed/trunk/includes/class-webtoffee-product-feed-sync.php

    r3435872 r3451792  
    8383            $this->version = WEBTOFFEE_PRODUCT_FEED_SYNC_VERSION;
    8484        } else {
    85             $this->version = '2.3.5';
     85            $this->version = '2.3.6';
    8686        }
    8787        $this->plugin_name = 'webtoffee-product-feed';
  • webtoffee-product-feed/trunk/webtoffee-product-feed.php

    r3435872 r3451792  
    1717 * Plugin URI:        https://wordpress.org/plugins/webtoffee-product-feed
    1818 * Description:       Integrate your WooCommerce store with popular sale channels including Google Merchant Center, Facebook/Instagram ads&shops, TikTok ads and much more.
    19  * Version:           2.3.5
     19 * Version:           2.3.6
    2020 * Author:            WebToffee
    2121 * Author URI:        https://www.webtoffee.com
     
    3636 * Rename this for your plugin and update it as you release new versions.
    3737 */
    38 define( 'WEBTOFFEE_PRODUCT_FEED_SYNC_VERSION', '2.3.5' );
     38define( 'WEBTOFFEE_PRODUCT_FEED_SYNC_VERSION', '2.3.6' );
    3939define( 'WEBTOFFEE_PRODUCT_FEED_ID', 'webtoffee_product_feed' );
    4040define( 'WT_PRODUCT_FEED_PLUGIN_URL', plugin_dir_url(__FILE__));
Note: See TracChangeset for help on using the changeset viewer.