Plugin Directory

Changeset 3399872


Ignore:
Timestamp:
11/20/2025 03:43:12 PM (4 months ago)
Author:
ampmode
Message:

2.5.3 version release | tagging version 2.5.3

Location:
woo-free-product-sample
Files:
8 edited
1 copied

Legend:

Unmodified
Added
Removed
  • woo-free-product-sample/tags/2.5.3/includes/class-woo-free-product-sample.php

    r3302391 r3399872  
    174174        $this->loader->add_filter( 'wc_min_max_quantity_minmax_do_not_count', $plugin_public, 'wfps_cart_exclude', 10, 4 );
    175175        $this->loader->add_filter( 'wc_min_max_quantity_minmax_cart_exclude', $plugin_public, 'wfps_cart_exclude', 10, 4 );
     176        $this->loader->add_filter( 'woocommerce_hidden_order_itemmeta', $plugin_public, 'wfps_hidden_sample_meta' );
    176177
    177178    }
  • woo-free-product-sample/tags/2.5.3/public/class-woo-free-product-sample-public.php

    r3387838 r3399872  
    801801    }
    802802
     803    /**
     804     * Modify hidden post meta keys to include "Free sample for".
     805     *
     806     * @param array $hidden_keys An array of meta keys that are hidden.
     807     *
     808     * @return  array  Updated array of hidden meta keys.
     809     */
     810    public function wfps_hidden_sample_meta( $hidden_keys ) {
     811
     812        // Hide the meta key "Free sample for"
     813        $hidden_keys[] = 'Free sample for';
     814
     815        return $hidden_keys;
     816    }
    803817}
  • woo-free-product-sample/tags/2.5.3/readme.txt

    r3393084 r3399872  
    77WC tested up to: 10.3.4
    88Requires PHP: 5.6
    9 Stable tag: 2.5.2
     9Stable tag: 2.5.3
    1010License: GPLv2 or later
    1111License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    115115
    116116== Changelog ==
     117#### 2.5.3
     118* Make "Free Sample For" meta key on order items hidden
     119
    117120#### 2.5.2
    118121* Added: Required conditions for sample button to show
  • woo-free-product-sample/tags/2.5.3/woo-free-product-sample.php

    r3393084 r3399872  
    1010 * Plugin URI:        https://wordpress.org/plugins/woo-free-product-sample
    1111 * Description:       It allows customers to order a product sample in a simple way.
    12  * Version:           2.5.2
     12 * Version:           2.5.3
    1313 * Author:            AMP-MODE
    1414 * Author URI:        https://amplifyplugins.com
     
    3232}
    3333
    34 define( 'WFPS_VERSION', '2.5.2' );
     34define( 'WFPS_VERSION', '2.5.3' );
    3535define( 'WFPS_MINIMUM_PHP_VERSION', '5.6.0' );
    3636define( 'WFPS_MINIMUM_WP_VERSION', '4.4' );
  • woo-free-product-sample/trunk/includes/class-woo-free-product-sample.php

    r3302391 r3399872  
    174174        $this->loader->add_filter( 'wc_min_max_quantity_minmax_do_not_count', $plugin_public, 'wfps_cart_exclude', 10, 4 );
    175175        $this->loader->add_filter( 'wc_min_max_quantity_minmax_cart_exclude', $plugin_public, 'wfps_cart_exclude', 10, 4 );
     176        $this->loader->add_filter( 'woocommerce_hidden_order_itemmeta', $plugin_public, 'wfps_hidden_sample_meta' );
    176177
    177178    }
  • woo-free-product-sample/trunk/public/class-woo-free-product-sample-public.php

    r3387838 r3399872  
    801801    }
    802802
     803    /**
     804     * Modify hidden post meta keys to include "Free sample for".
     805     *
     806     * @param array $hidden_keys An array of meta keys that are hidden.
     807     *
     808     * @return  array  Updated array of hidden meta keys.
     809     */
     810    public function wfps_hidden_sample_meta( $hidden_keys ) {
     811
     812        // Hide the meta key "Free sample for"
     813        $hidden_keys[] = 'Free sample for';
     814
     815        return $hidden_keys;
     816    }
    803817}
  • woo-free-product-sample/trunk/readme.txt

    r3393084 r3399872  
    77WC tested up to: 10.3.4
    88Requires PHP: 5.6
    9 Stable tag: 2.5.2
     9Stable tag: 2.5.3
    1010License: GPLv2 or later
    1111License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    115115
    116116== Changelog ==
     117#### 2.5.3
     118* Make "Free Sample For" meta key on order items hidden
     119
    117120#### 2.5.2
    118121* Added: Required conditions for sample button to show
  • woo-free-product-sample/trunk/woo-free-product-sample.php

    r3393084 r3399872  
    1010 * Plugin URI:        https://wordpress.org/plugins/woo-free-product-sample
    1111 * Description:       It allows customers to order a product sample in a simple way.
    12  * Version:           2.5.2
     12 * Version:           2.5.3
    1313 * Author:            AMP-MODE
    1414 * Author URI:        https://amplifyplugins.com
     
    3232}
    3333
    34 define( 'WFPS_VERSION', '2.5.2' );
     34define( 'WFPS_VERSION', '2.5.3' );
    3535define( 'WFPS_MINIMUM_PHP_VERSION', '5.6.0' );
    3636define( 'WFPS_MINIMUM_WP_VERSION', '4.4' );
Note: See TracChangeset for help on using the changeset viewer.