Plugin Directory

Changeset 2922987


Ignore:
Timestamp:
06/07/2023 03:56:20 PM (3 years ago)
Author:
ampmode
Message:

replace the deprecated function

Location:
woo-free-product-sample/trunk
Files:
3 edited

Legend:

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

    r2759997 r2922987  
    161161        $this->loader->add_filter( 'woocommerce_add_to_cart_validation', $plugin_public, 'wfps_set_limit_per_order', 99, 4 );
    162162        $this->loader->add_filter( 'woocommerce_get_cart_item_from_session', $plugin_public, 'wfps_get_cart_items_from_session', 10, 2 );
    163         $this->loader->add_action( 'woocommerce_add_order_item_meta', $plugin_public, 'wfps_save_posted_data_into_order', 10, 2 );
     163        $this->loader->add_action( 'woocommerce_new_order_item', $plugin_public, 'wfps_save_posted_data_into_order', 10, 2 );
    164164        $this->loader->add_filter( 'woocommerce_locate_template', $plugin_public, 'wfps_set_locate_template', 10, 3 );
    165165        $this->loader->add_filter( 'woocommerce_cart_item_name', $plugin_public, 'wfps_alter_item_name', 10, 3 );
  • woo-free-product-sample/trunk/readme.txt

    r2893617 r2922987  
    77WC tested up to: 7.5.1
    88Requires PHP: 5.6
    9 Stable tag: 2.2.9
     9Stable tag: 2.3.0
    1010License: GPLv2 or later
    1111License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    115115
    116116== Changelog ==
     117#### 2.3.0
     118* Update: Replace the deprecated function - woocommerce_add_order_item_meta => woocommerce_new_order_item.
     119
    117120#### 2.2.9
    118121* Fixed upgrade link display issue.
     
    282285
    283286== Upgrade Notice ==
    284 #### 2.2.9
    285 * Fixed upgrade link display issue.
    286 * Fixed redirect issue after plugin activation, to remain on the plugin installer page instead of redirecting to the plugin settings page.
     287#### 2.3.0
     288* Update: Replace the deprecated function - woocommerce_add_order_item_meta => woocommerce_new_order_item.
  • woo-free-product-sample/trunk/woo-free-product-sample.php

    r2893617 r2922987  
    99 * Plugin URI:        https://wordpress.org/plugins/woo-free-product-sample
    1010 * Description:       It allows customers to order a product sample in a simple way.
    11  * Version:           2.2.9
     11 * Version:           2.3.0
    1212 * Author:            AMP-MODE
    1313 * Author URI:        https://amplifyplugins.com
     
    1818 * Requires PHP:      5.6
    1919 * Requires at least: 4.4
    20  * Tested up to:      6.1.1
     20 * Tested up to:      6.2.2
    2121 *
    2222 * WC requires at least: 3.1
    23  * WC tested up to:   7.5.1
     23 * WC tested up to:   7.7.0
    2424 * License: GNU General Public License v3.0
    2525 * License URI: http://www.gnu.org/licenses/gpl-3.0.html
     
    3131}
    3232
    33 define( 'WFPS_VERSION', '2.2.9' );
     33define( 'WFPS_VERSION', '2.3.0' );
    3434define( 'WFPS_MINIMUM_PHP_VERSION', '5.6.0' );
    3535define( 'WFPS_MINIMUM_WP_VERSION', '4.4' );
Note: See TracChangeset for help on using the changeset viewer.