Plugin Directory

Changeset 3348003


Ignore:
Timestamp:
08/21/2025 09:25:13 AM (7 months ago)
Author:
worldweb
Message:
  • Display only the published WooCommerce products.
Location:
recently-purchased-products-for-woo
Files:
36 added
3 edited

Legend:

Unmodified
Added
Removed
  • recently-purchased-products-for-woo/trunk/includes/class-rppw-public.php

    r3337697 r3348003  
    229229                            }
    230230                        }
     231
    231232                        $product = wc_get_product($item_id);
     233
     234                        // Check if product exists and is published
     235                        if (!$product || $product->get_status() !== 'publish') {
     236                            continue;
     237                        }
     238
    232239                        $url = get_permalink($item_id);
    233240                        if (!empty($product)) {
     
    414421                        }
    415422                        $product = wc_get_product($item_id);
     423
     424                        // Check if product exists and is published
     425                        if (!$product || $product->get_status() !== 'publish') {
     426                            continue;
     427                        }
     428                       
    416429                        $url = get_permalink($item_id);
    417430                        if (!empty($product)) {
  • recently-purchased-products-for-woo/trunk/readme.txt

    r3337707 r3348003  
    1010Requires PHP:      7.4
    1111Tested up to:      6.8
    12 Stable tag:        1.1.7
     12Stable tag:        1.1.8
    1313License:           GPLv2 or later
    1414License URI:       https://www.gnu.org/licenses/gpl-2.0.html
    15 Version:           1.1.7
     15Version:           1.1.8
    1616
    1717Display Recently Purchased Products For Woocommerce using Widget and Shortcode
     
    155155== Changelog ==
    156156
     157= 1.1.8 (Aug 21, 2025) =
     158* Display only the published WooCommerce products.
     159
    157160= 1.1.7 (Aug 1, 2025) =
    158161* A new attribute allow_category has been added.
  • recently-purchased-products-for-woo/trunk/recently-purchased-products-for-woo.php

    r3337697 r3348003  
    44 * Plugin URI: https://wordpress.org/plugins/recently-purchased-products-for-woo
    55 * Description: Display Recently Purchased Products For Woocommerce using Widget and Shortcode
    6  * Version: 1.1.7
     6 * Version: 1.1.8
    77 * Author: World Web Technology
    88 * Author URI: http://www.worldwebtechnology.com
     
    3333 */
    3434if( !defined( 'RPPW_VERSION' ) ) {
    35     define( 'RPPW_VERSION', '1.1.7' ); // Plugin Version
     35    define( 'RPPW_VERSION', '1.1.8' ); // Plugin Version
    3636}
    3737
Note: See TracChangeset for help on using the changeset viewer.