Changeset 3476845
- Timestamp:
- 03/07/2026 03:40:24 AM (4 weeks ago)
- Location:
- product-open-pricing-name-your-price-for-woocommerce/trunk
- Files:
-
- 2 edited
-
product-open-pricing-for-woocommerce.php (modified) (6 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
product-open-pricing-name-your-price-for-woocommerce/trunk/product-open-pricing-for-woocommerce.php
r3304102 r3476845 4 4 Plugin URI: https://wpwham.com/products/product-open-pricing-name-your-price-for-woocommerce/ 5 5 Description: Open price (i.e. Name your price) products for WooCommerce. 6 Version: 1.7. 36 Version: 1.7.4 7 7 Author: WP Wham 8 8 Author URI: https://wpwham.com/ 9 9 Text Domain: product-open-pricing-for-woocommerce 10 10 Domain Path: /langs 11 Copyright: © 2018-202 5WP Wham. All rights reserved.11 Copyright: © 2018-2026 WP Wham. All rights reserved. 12 12 License: GNU General Public License v3.0 13 13 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 37 37 38 38 if ( ! 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' ); 40 40 } 41 41 … … 52 52 * 53 53 * @class Alg_WC_Product_Open_Pricing 54 * @version 1.7. 354 * @version 1.7.4 55 55 * @since 1.0.0 56 56 */ … … 65 65 * @since 1.0.0 66 66 */ 67 public $version = '1.7. 3';67 public $version = '1.7.4'; 68 68 69 69 /** … … 93 93 * Alg_WC_Product_Open_Pricing Constructor. 94 94 * 95 * @version 1.7. 395 * @version 1.7.4 96 96 * @since 1.0.0 97 97 * @access public 98 98 */ 99 function __construct() { 100 101 // Set up localisation 102 add_action( 'init', array( $this, 'load_localization' ) ); 99 public function __construct() { 103 100 104 101 // 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' ); 107 126 // Admin 108 127 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 } 129 134 } 130 135 … … 178 183 179 184 /** 180 * admin.181 *182 * @version 1.3.0183 * @since 1.3.0184 */185 function admin() {186 // Action links187 add_filter( 'plugin_action_links_' . plugin_basename( __FILE__ ), array( $this, 'action_links' ) );188 // Settings189 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 updated197 if ( get_option( 'alg_wc_product_open_pricing_version', '' ) !== $this->version ) {198 add_action( 'admin_init', array( $this, 'version_updated' ) );199 }200 }201 202 /**203 185 * Show action links on the plugin screen. 204 186 * -
product-open-pricing-name-your-price-for-woocommerce/trunk/readme.txt
r3304102 r3476845 3 3 Tags: woocommerce, product open pricing, open pricing, name your price 4 4 Requires at least: 4.4 5 Tested up to: 6. 86 Stable tag: 1.7. 35 Tested up to: 6.9 6 Stable tag: 1.7.4 7 7 License: GNU General Public License v3.0 8 8 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 49 49 50 50 == Changelog == 51 52 = 1.7.4 - 2026-03-06 = 53 * FIX: PHP notice. 51 54 52 55 = 1.7.3 - 2025-05-31 =
Note: See TracChangeset
for help on using the changeset viewer.