kpflueger
Forum Replies Created
-
@champsupertramp I was able to get the approval portion working using this code below:
add_action( 'um_post_registration_pending_hook', 'check_for_promo_code', 10, 2 ); function check_for_promo_code( $user_id, $args ) { global $ultimatemember; um_fetch_user( $user_id ); $promo_codes = array('ecss_amp', 'ECSS_AMP'); $user_promo = um_user('promo_code'); if (in_array($user_promo, $promo_codes )) { um_fetch_user( $user_id ); UM()->user()->approve(); } else { um_fetch_user( $user_id ); UM()->user()->pending(); } }
However, I am unable to successfully set the users role within that same function. I am trying to use the set_role() method as such:
add_action( 'um_post_registration_pending_hook', 'check_for_promo_code', 10, 2 ); function check_for_promo_code( $user_id, $args ) { global $ultimatemember; um_fetch_user( $user_id ); $promo_codes = array('ecss_amp', 'ECSS_AMP'); $user_promo = um_user('promo_code'); if (in_array($user_promo, $promo_codes )) { um_fetch_user( $user_id ); UM()->user()->set_role('role_name_is_here'); UM()->user()->approve(); } else { um_fetch_user( $user_id ); UM()->user()->pending(); } }
Does this need to be handled in a separate filter or action? Any tips are greatly appreciated! Thanks!
Thanks for the quick follow up @champsupertramp. Please see below
add_action( 'um_post_registration_pending_hook', 'function_name', 10, 2 ); function check_for_promo_code( $user_id, $args ) { um_fetch_user( $user_id ); $promo_codes = array('ecss_amp', 'ECSS_AMP'); $user_promo = um_user('promo_code'); if (in_array($user_promo, $promo_codes )) { $ultimatemember->user()->approve(); } else { $ultimatemember->user()->pending(); } }
Hi @champsupertramp,
I sent an email regarding this issue on the 14th of January to the address provided in a previous comment. Please confirm that this was received as we are still experiencing this issue and I’d like to find a resolution ASAP. Thank you!
Hi @champsupertramp,
Just checking in to see if you’d had a chance to review my last comment? Thank you in advance!
Hi Champ,
We are running version 2.1.15 of the Ultimate Member Plugin and version 5.6 of WordPress.
In addition to the issue as described in the original post, I have also tried setting up the email to use individual {usermeta:meta_key} but the only data that comes through in the email when using this method is the username and user email.
This leads me to believe the issue is specifically related to the custom fields in the signup form.
Thanks in advance for any assistance!
I have run into this same issue. I have tried several of the other options that are provided by Google when selecting the application type but to no avail. Despite my best efforts, I have not been able to connect this plugin since Google removed the “Other” option. Please advise as this is a crucial piece of several workflows from some of my clients. Thank you!
Forum: Plugins
In reply to: [WooCommerce Square] Can’t enter credit card info online site with SquareAfter some troubleshooting, I found that the issue I was experiencing was due to an error being thrown by the WooCommerce Facebook plugin. Once I deactivated that plugin, this error went away.
Forum: Plugins
In reply to: [WooCommerce Square] Can’t enter credit card info online site with SquareI am also having this issue. The payment form is visible, but I am unable to focus any of the form inputs in the checkout.
110% support this as a feature if it does not exist. I am looking to solve an almost identical issue and would LOVE to have a filter option on the calendar. A temp workaround that I have tried is to create a tabular view with each tab containing a single calendar instead of the grouped view. I have run into issues with that as well, however, in which the calendar in all but the primary tab are shown in their condensed state (dots for events instead of event names). Nonetheless, this would be a killer feature!
I am also having this issue. Have tried a few different formats of the form but to no avail. Any assistance appreciated!