Plugin Directory

Changeset 3476845


Ignore:
Timestamp:
03/07/2026 03:40:24 AM (4 weeks ago)
Author:
wpwham
Message:

Version 1.7.4 update

Location:
product-open-pricing-name-your-price-for-woocommerce/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • product-open-pricing-name-your-price-for-woocommerce/trunk/product-open-pricing-for-woocommerce.php

    r3304102 r3476845  
    44Plugin URI: https://wpwham.com/products/product-open-pricing-name-your-price-for-woocommerce/
    55Description: Open price (i.e. Name your price) products for WooCommerce.
    6 Version: 1.7.3
     6Version: 1.7.4
    77Author: WP Wham
    88Author URI: https://wpwham.com/
    99Text Domain: product-open-pricing-for-woocommerce
    1010Domain Path: /langs
    11 Copyright: © 2018-2025 WP Wham. All rights reserved.
     11Copyright: © 2018-2026 WP Wham. All rights reserved.
    1212License: GNU General Public License v3.0
    1313License URI: http://www.gnu.org/licenses/gpl-3.0.html
     
    3737
    3838if ( ! defined( 'WPWHAM_PRODUCT_OPEN_PRICING_VERSION' ) ) {
    39     define( 'WPWHAM_PRODUCT_OPEN_PRICING_VERSION', '1.7.3' );
     39    define( 'WPWHAM_PRODUCT_OPEN_PRICING_VERSION', '1.7.4' );
    4040}
    4141
     
    5252 *
    5353 * @class   Alg_WC_Product_Open_Pricing
    54  * @version 1.7.3
     54 * @version 1.7.4
    5555 * @since   1.0.0
    5656 */
     
    6565     * @since 1.0.0
    6666     */
    67     public $version = '1.7.3';
     67    public $version = '1.7.4';
    6868
    6969    /**
     
    9393     * Alg_WC_Product_Open_Pricing Constructor.
    9494     *
    95      * @version 1.7.3
     95     * @version 1.7.4
    9696     * @since   1.0.0
    9797     * @access  public
    9898     */
    99     function __construct() {
    100 
    101         // Set up localisation
    102         add_action( 'init', array( $this, 'load_localization' ) );
     99    public function __construct() {
    103100
    104101        // Include required files
    105         $this->includes();
    106 
     102        add_action( 'init', array( $this, 'includes' ) );
     103
     104        // Admin
     105        add_action( 'woocommerce_system_status_report', array( $this, 'add_settings_to_status_report' ) );
     106        add_filter( 'plugin_action_links_' . plugin_basename( __FILE__ ), array( $this, 'action_links' ) );
     107        add_filter( 'woocommerce_get_settings_pages', array( $this, 'add_woocommerce_settings_tab' ) );
     108
     109        // Updates
     110        if ( get_option( 'alg_wc_product_open_pricing_version', '' ) !== $this->version ) {
     111            add_action( 'admin_init', array( $this, 'version_updated' ) );
     112        }
     113    }
     114   
     115    /**
     116     * Include required core files used in admin and on the frontend.
     117     *
     118     * @version 1.7.4
     119     * @since   1.0.0
     120     */
     121    public function includes() {
     122        // Localization
     123        load_plugin_textdomain( 'product-open-pricing-for-woocommerce', false, dirname( plugin_basename( __FILE__ ) ) . '/langs/' );
     124        // Core
     125        require_once( 'includes/class-alg-wc-product-open-pricing-core.php' );
    107126        // Admin
    108127        if ( is_admin() ) {
    109             $this->admin();
    110         }
    111     }
    112    
    113     /**
    114      * @since   1.7.3
    115      */
    116     public function load_localization() {
    117         load_plugin_textdomain( 'product-open-pricing-for-woocommerce', false, dirname( plugin_basename( __FILE__ ) ) . '/langs/' );
    118     }
    119 
    120     /**
    121      * Include required core files used in admin and on the frontend.
    122      *
    123      * @version 1.3.0
    124      * @since   1.0.0
    125      */
    126     function includes() {
    127         // Core
    128         require_once( 'includes/class-alg-wc-product-open-pricing-core.php' );
     128            require_once( 'includes/settings/class-alg-wc-product-open-pricing-settings-section.php' );
     129            $this->settings = array();
     130            $this->settings['general'] = require_once( 'includes/settings/class-alg-wc-product-open-pricing-settings-general.php' );
     131            // Metaboxes (per Product Settings)
     132            require_once( 'includes/settings/class-alg-wc-product-open-pricing-settings-per-product.php' );
     133        }
    129134    }
    130135
     
    178183
    179184    /**
    180      * admin.
    181      *
    182      * @version 1.3.0
    183      * @since   1.3.0
    184      */
    185     function admin() {
    186         // Action links
    187         add_filter( 'plugin_action_links_' . plugin_basename( __FILE__ ), array( $this, 'action_links' ) );
    188         // Settings
    189         require_once( 'includes/settings/class-alg-wc-product-open-pricing-settings-section.php' );
    190         $this->settings = array();
    191         $this->settings['general'] = require_once( 'includes/settings/class-alg-wc-product-open-pricing-settings-general.php' );
    192         add_filter( 'woocommerce_get_settings_pages', array( $this, 'add_woocommerce_settings_tab' ) );
    193         add_action( 'woocommerce_system_status_report', array( $this, 'add_settings_to_status_report' ) );
    194         // Metaboxes (per Product Settings)
    195         require_once( 'includes/settings/class-alg-wc-product-open-pricing-settings-per-product.php' );
    196         // Version updated
    197         if ( get_option( 'alg_wc_product_open_pricing_version', '' ) !== $this->version ) {
    198             add_action( 'admin_init', array( $this, 'version_updated' ) );
    199         }
    200     }
    201 
    202     /**
    203185     * Show action links on the plugin screen.
    204186     *
  • product-open-pricing-name-your-price-for-woocommerce/trunk/readme.txt

    r3304102 r3476845  
    33Tags: woocommerce, product open pricing, open pricing, name your price
    44Requires at least: 4.4
    5 Tested up to: 6.8
    6 Stable tag: 1.7.3
     5Tested up to: 6.9
     6Stable tag: 1.7.4
    77License: GNU General Public License v3.0
    88License URI: http://www.gnu.org/licenses/gpl-3.0.html
     
    4949
    5050== Changelog ==
     51
     52= 1.7.4 - 2026-03-06 =
     53* FIX: PHP notice.
    5154
    5255= 1.7.3 - 2025-05-31 =
Note: See TracChangeset for help on using the changeset viewer.