nickbats
Forum Replies Created
-
Hello @yuriinalivaiko
Thank you for your reply! The “Custom usermeta table” feature was disabled on all subsites so I updated theum_last_version_upgradeoption for all sites using the code you provided, and this successfully cleared the upgrade notice on each subsite. Thank you for the help!
Best regardsThe message disappeared after the scheduled action ran.
Thank you@ieanea I have also updated to 2.10.4 and still getting “Background process is running: Setting user statuses 0/2” . did you something else to remove the notice besides updating the plugin?
@missveronicatv thank you for your help, this worked!
this code snippet worked, however it changed the profile photo to all the users of the specific role even the ones that already had uploaded a profile photo of their choice. I only want this to be applied to the users of a specific role as a default photo IF only they do not have uploaded a profile photo.
Hi @andrewshu,
yes you can close the topic.Hello @andrewshu
I tried adding this code but I get a 503 Service Temporarily Unavailable Server error.add_filter('um_account_shortcode_args_filter', 'my_account_shortcode_args', 10, 1); function my_account_shortcode_args($args) { if (isset($args['tab']) && "account_change_password" === $args['tab']) { $args['tab'] = 'account_change_password'; } return $args; } add_filter('um_account_content_hook_account_change_password', 'um_account_content_hook_account_change_password'); function um_account_content_hook_account_change_password($output) { ob_start(); echo do_shortcode('[ultimatemember_account tab="account_change_password"] '); $output .= ob_get_contents(); ob_end_clean(); return $output; }The error is triggered by the shortcode [ultimatemember_account tab=”account_change_password”].
However I have found a different approach to achieve what I want. I removed the custom account_change_password tab and kept the default one. Then I used the hooks um_before_account_password and um_after_account_password to add the additional content I want before and after the UM loads the change_password fields.
Thank you for your time and help!Hi @andrewshu
yes I am outputing the tab content like this:add_filter('um_account_content_hook_account_change_password', 'um_account_content_hook_account_change_password'); function um_account_content_hook_account_change_password($output) { ob_start(); require(locate_template('/template-parts/account-tabs/change-pass-tab.php')); $output .= ob_get_contents(); ob_end_clean(); return $output; }change-pass-tab.php contains the content I want to render including the [ultimatemember_account tab=”password”] shortcode.
- This reply was modified 2 years, 12 months ago by nickbats.