Changeset 3464080
- Timestamp:
- 02/18/2026 09:04:38 AM (6 weeks ago)
- Location:
- checkout-files-upload-woocommerce/trunk
- Files:
-
- 3 edited
-
checkout-files-upload-woocommerce.php (modified) (6 diffs)
-
includes/settings/class-alg-wc-checkout-files-upload-settings-file.php (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
checkout-files-upload-woocommerce/trunk/checkout-files-upload-woocommerce.php
r3304095 r3464080 4 4 Plugin URI: https://wpwham.com/products/checkout-files-upload-for-woocommerce/ 5 5 Description: Let your customers upload files on (or after) WooCommerce checkout. 6 Version: 2.2. 26 Version: 2.2.3 7 7 Author: WP Wham 8 8 Author URI: https://wpwham.com/ 9 9 Text Domain: checkout-files-upload-woocommerce 10 10 Domain Path: /langs 11 Copyright: © 2018-202 5WP Wham11 Copyright: © 2018-2026 WP Wham 12 12 License: GNU General Public License v3.0 13 13 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 38 38 39 39 if ( ! defined( 'WPWHAM_CHECKOUT_FILES_UPLOAD_VERSION' ) ) { 40 define( 'WPWHAM_CHECKOUT_FILES_UPLOAD_VERSION', '2.2. 2' );40 define( 'WPWHAM_CHECKOUT_FILES_UPLOAD_VERSION', '2.2.3' ); 41 41 } 42 42 if ( ! defined( 'WPWHAM_CHECKOUT_FILES_UPLOAD_DBVERSION' ) ) { … … 67 67 * 68 68 * @class Alg_WC_Checkout_Files_Upload 69 * @version 2.2. 269 * @version 2.2.3 70 70 * @since 1.0.0 71 71 */ … … 81 81 * @since 1.0.0 82 82 */ 83 public $version = '2.2. 2';83 public $version = '2.2.3'; 84 84 85 85 /** … … 109 109 * Alg_WC_Checkout_Files_Upload Constructor. 110 110 * 111 * @version 2.2. 1111 * @version 2.2.3 112 112 * @since 1.0.0 113 113 * @access public 114 114 */ 115 115 function __construct() { 116 117 // Set up localisation 118 add_action( 'init', array( $this, 'load_localization' ) ); 119 116 120 117 // Include required files 121 $this->includes(); 122 118 require_once( 'includes/alg-wc-checkout-files-upload-functions.php' ); 119 $this->core = require_once( 'includes/class-alg-wc-checkout-files-upload.php' ); 120 121 // Global 122 add_action( 'init', array( $this, 'includes' ) ); 123 123 124 // Admin 124 if ( is_admin() ) { 125 add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_scripts' ) ); 126 add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_styles' ) ); 127 add_filter( 'woocommerce_get_settings_pages', array( $this, 'add_woocommerce_settings_tab' ) ); 128 add_filter( 'plugin_action_links_' . plugin_basename( __FILE__ ), array( $this, 'action_links' ) ); 129 // Settings 130 require_once( 'includes/settings/class-alg-wc-checkout-files-upload-settings-section.php' ); 131 require_once( 'includes/settings/class-alg-wc-checkout-files-upload-settings-file.php' ); 132 $this->settings = array(); 133 $this->settings['general'] = require_once( 'includes/settings/class-alg-wc-checkout-files-upload-settings-general.php' ); 134 $this->settings['emails'] = require_once( 'includes/settings/class-alg-wc-checkout-files-upload-settings-emails.php' ); 135 $this->settings['template'] = require_once( 'includes/settings/class-alg-wc-checkout-files-upload-settings-template.php' ); 136 $total_number = apply_filters( 'alg_wc_checkout_files_upload_option', 1, 'total_number' ); 137 for ( $i = 1; $i <= $total_number; $i++ ) { 138 $this->settings[ 'file_' . $i ] = new Alg_WC_Checkout_Files_Upload_Settings_File( $i ); 139 } 140 add_action( 'woocommerce_system_status_report', array( $this, 'add_settings_to_status_report' ) ); 141 // Version updated 142 if ( get_option( 'alg_checkout_files_upload_version', '' ) !== $this->version ) { 143 add_action( 'admin_init', array( $this, 'version_updated' ) ); 144 } 145 } 146 147 } 148 149 /** 150 * @since 2.2.1 151 */ 152 public function load_localization() { 153 load_plugin_textdomain( 'checkout-files-upload-woocommerce', false, dirname( plugin_basename( __FILE__ ) ) . '/langs/' ); 154 } 125 add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_scripts' ) ); 126 add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_styles' ) ); 127 add_action( 'woocommerce_system_status_report', array( $this, 'add_settings_to_status_report' ) ); 128 add_filter( 'woocommerce_get_settings_pages', array( $this, 'add_woocommerce_settings_tab' ) ); 129 add_filter( 'plugin_action_links_' . plugin_basename( __FILE__ ), array( $this, 'action_links' ) ); 130 131 // Updates 132 if ( get_option( 'alg_checkout_files_upload_version', '' ) !== $this->version ) { 133 add_action( 'admin_init', array( $this, 'version_updated' ) ); 134 } 135 136 } 137 155 138 156 139 /** … … 286 269 #endregion add_settings_to_status_report 287 270 } 288 271 272 289 273 /** 290 274 * Include required core files used in admin and on the frontend. 291 275 * 292 * @version 1.4.0 293 * @since 1.0.0 294 */ 295 function includes() { 296 // Functions 297 require_once( 'includes/alg-wc-checkout-files-upload-functions.php' ); 298 // Core 299 $this->core = require_once( 'includes/class-alg-wc-checkout-files-upload.php' ); 300 } 301 276 * @version 2.2.3 277 * @since 1.0.0 278 */ 279 public function includes() { 280 281 // Localization 282 load_plugin_textdomain( 'checkout-files-upload-woocommerce', false, dirname( plugin_basename( __FILE__ ) ) . '/langs/' ); 283 284 // Settings 285 require_once( 'includes/settings/class-alg-wc-checkout-files-upload-settings-section.php' ); 286 require_once( 'includes/settings/class-alg-wc-checkout-files-upload-settings-file.php' ); 287 $this->settings = array(); 288 $this->settings['general'] = require_once( 'includes/settings/class-alg-wc-checkout-files-upload-settings-general.php' ); 289 $this->settings['emails'] = require_once( 'includes/settings/class-alg-wc-checkout-files-upload-settings-emails.php' ); 290 $this->settings['template'] = require_once( 'includes/settings/class-alg-wc-checkout-files-upload-settings-template.php' ); 291 $total_number = apply_filters( 'alg_wc_checkout_files_upload_option', 1, 'total_number' ); 292 for ( $i = 1; $i <= $total_number; $i++ ) { 293 $this->settings[ 'file_' . $i ] = new Alg_WC_Checkout_Files_Upload_Settings_File( $i ); 294 } 295 296 } 297 298 302 299 /** 303 300 * version_updated. -
checkout-files-upload-woocommerce/trunk/includes/settings/class-alg-wc-checkout-files-upload-settings-file.php
r2938534 r3464080 45 45 $product_tags_options = array(); 46 46 $product_tags = get_terms( 'product_tag', 'orderby=name&hide_empty=0' ); 47 if ( ! empty( $product_tags ) && ! is_wp_error( $product_tags ) ) {47 if ( ! empty( $product_tags ) && ! is_wp_error( $product_tags ) ) { 48 48 foreach ( $product_tags as $product_tag ) { 49 49 $product_tags_options[ $product_tag->term_id ] = $product_tag->name; … … 54 54 $product_cats_options = array(); 55 55 $product_cats = get_terms( 'product_cat', 'orderby=name&hide_empty=0' ); 56 if ( ! empty( $product_cats ) && ! is_wp_error( $product_cats ) ) {56 if ( ! empty( $product_cats ) && ! is_wp_error( $product_cats ) ) { 57 57 foreach ( $product_cats as $product_cat ) { 58 58 $product_cats_options[ $product_cat->term_id ] = $product_cat->name; -
checkout-files-upload-woocommerce/trunk/readme.txt
r3304095 r3464080 3 3 Tags: woocommerce, checkout files upload, checkout, woo commerce 4 4 Requires at least: 4.4 5 Tested up to: 6. 86 Stable tag: 2.2. 25 Tested up to: 6.9 6 Stable tag: 2.2.3 7 7 License: GNU General Public License v3.0 8 8 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 77 77 == Changelog == 78 78 79 = 2.2.2 - 2025-04-24 = 79 = 2.2.3 - 2026-02-18 = 80 * FIX: PHP notice. 81 82 = 2.2.2 - 2025-05-31 = 80 83 * FIX: add filter 'wpwham_checkout_files_upload_validate_file_type'. 81 84
Note: See TracChangeset
for help on using the changeset viewer.