Changeset 3261427
- Timestamp:
- 03/25/2025 10:25:31 AM (12 months ago)
- Location:
- dfx-woo-role-changer/trunk
- Files:
-
- 1 added
- 2 edited
-
dfx-woo-role-changer.php (modified) (4 diffs)
-
freemius/assets/img/dfx-woo-role-changer.png (added)
-
readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
dfx-woo-role-changer/trunk/dfx-woo-role-changer.php
r3234638 r3261427 4 4 * Plugin Name: DFX Automatic Role Changer for WooCommerce 5 5 * Description: Allows the automatic assignation of roles to users on product purchases in WooCommerce 6 * Version: 20250 2046 * Version: 20250325 7 7 * Author: David Marín Carreño 8 8 * Author URI: https://davefx.com … … 24 24 * 25 25 * @package DFX-Woo-Role-Changer 26 * @version 20250 20426 * @version 20250325 27 27 * @author David Marín Carreño <davefx@davefx.com> 28 28 * @copyright Copyright (c) 2020-2025 David Marín Carreño … … 32 32 */ 33 33 defined( 'ABSPATH' ) or die( 'No script kiddies please!' ); 34 const DFX_WOO_ROLE_CHANGER_VERSION = '20250 204';34 const DFX_WOO_ROLE_CHANGER_VERSION = '20250325'; 35 35 if ( function_exists( 'dfx_woo_role_changer_fs' ) ) { 36 36 dfx_woo_role_changer_fs()->set_basename( false, __FILE__ ); … … 314 314 foreach ( $order_product_items as $order_product_item ) { 315 315 $role = get_post_meta( $order_product_item->get_product_id(), '_dfxwcrc_role_assignment', true ); 316 if ( empty( $role ) || empty( trim( $role ) ) ) { 317 continue; 318 } 319 $roles_for_product = explode( ',', $role ); 320 foreach ( $roles_for_product as $role_for_product ) { 321 $role_for_product = trim( $role_for_product ); 322 if ( $role_for_product !== 'none' && !empty( $role_for_product ) && !in_array( $role_for_product, $roles ) ) { 323 $roles[] = $role_for_product; 316 if ( !empty( $role ) && !empty( trim( $role ) ) ) { 317 $roles_for_product = explode( ',', $role ); 318 foreach ( $roles_for_product as $role_for_product ) { 319 $role_for_product = trim( $role_for_product ); 320 if ( $role_for_product !== 'none' && !empty( $role_for_product ) && !in_array( $role_for_product, $roles ) ) { 321 $roles[] = $role_for_product; 322 } 324 323 } 325 324 } -
dfx-woo-role-changer/trunk/readme.txt
r3234638 r3261427 5 5 Requires at least: 3.1 6 6 Tested up to: 6.6 7 Stable tag: 20250 2047 Stable tag: 20250325 8 8 License: GPLv3 9 9 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 21 21 22 22 * Integrates seamlessly with WooCommerce. 23 24 * *Premium*: Supports the definition of different roles for variations in variable products. 23 25 24 26 * *Premium*: Allows defining, per product, a role validity period in days after the purchase, so the role granted in the purchase will be automatically removed after that period. … … 148 150 == Changelog == 149 151 152 = 20250325 = 153 154 * *Premium*: Added support for definition of roles in variations of variable products. 155 156 * *Premium*: In case of having one order with several products granting the same role, we can now select how to calculate the validity period (if defined). 157 150 158 = 20250204 = 151 159
Note: See TracChangeset
for help on using the changeset viewer.