ufo56
Forum Replies Created
-
Not sure, reinstalled wp core also for good measure. All other plugins are quite usual elementor etc. Only Woo and Taxopress endabled i get this error also.
- This reply was modified 1 month, 2 weeks ago by ufo56.
Still did not work, some functions just does not trigger on my site. Don’t know why…
I used uncanny automator now.
From user edit page
Still nothing,
add_filter('um_set_user_role', 'my_set_user_role_test', 10, 3); function my_set_user_role_test($new_role, $user_id, $user) { error_log("User ID: $user_id, New Role: $new_role"); return $new_role; }
function test_set_user_role($user_id, $role, $old_roles) { error_log("User ID: $user_id"); error_log("Old Roles: " . implode(', ', $old_roles)); error_log("New Role: " . $role); } add_action('set_user_role', 'test_set_user_role', 10, 3);
Seems that its outdated or something has changed.
Added some lines to log and nothing appears in debug.log
Seems like set_user_role is not triggering.
function custom_role_is_changed_email($user_id, $role, $old_roles) { error_log("Role change ID: $user_id"); if (!empty($old_roles) && !in_array($role, $old_roles)) { $all_roles = UM()->roles()->get_roles(); $old_role_names = array(); foreach ($old_roles as $old_role) { $old_role_names[] = $all_roles[$old_role]; } $args['tags'] = array('{role}', '{old_role}'); $args['tags_replace'] = array($all_roles[$role], implode(',', $old_role_names)); um_fetch_user($user_id); error_log("Sending email to: " . um_user('user_email')); UM()->mail()->send(um_user('user_email'), 'role_is_changed_email', $args); } else { error_log("No role change or role already exists for User ID: $user_id"); } }
- This reply was modified 11 months, 1 week ago by ufo56.
Did you find a solution ?
Forum: Plugins
In reply to: [Hustle - Email Marketing, Lead Generation, Optins, Popups] Mailchimp errorIt just took time like 45 minutes to subscriber appear on mailchimp
Product regular price: 3.29
Sale price: 2.63On product page it calculates from full price wich is correct.
3.29 -25% = 2.47
On cart it calculates discount from discount
2.63 – 25% = 1.97
Unfortunately the result is same, still calculates discount from discount.
Free
Forum: Plugins
In reply to: [301 Redirects - Easy Redirect Manager] redirect takes the query stringSame problem here.
domain.com/?id=1240&news_id=123 should redirect domain.net/domain.com/?id=1240&news_id=123 redirects to domain.net/?id=1240&news_id=123
Forum: Plugins
In reply to: [LearnPress - WordPress LMS Plugin] treat course as woocommerce productThis plugin does not link courses with woocommerce product. Is there any way to link them ?
- This reply was modified 4 years, 8 months ago by ufo56.
Forum: Plugins
In reply to: [AMP for WP - Accelerated Mobile Pages] wordpress 5.3 errorThis plugin did that error https://www.ads-software.com/plugins/wp-asset-clean-up/
Forum: Plugins
In reply to: [AMP for WP - Accelerated Mobile Pages] wordpress 5.3 error@hannanbaig actually asset cleanup plugin was quilty this time ??
Forum: Plugins
In reply to: [WP-Chatbot for Messenger] Chat button is not clickableThank you.
EDIT: please remove my site link from first post.
- This reply was modified 5 years, 2 months ago by ufo56.