Hi @arbeola12
You can try this code snippet:
add_action("profile_update","um_122120_profile_update",9, 2);
function um_122120_profile_update( $user_id, $args ){
update_user_meta( $user_id, "awaiting_admin_review");
}
Regards,
Thanks and I appreciate your response. I will try out but what if I want to make this works for just a specific user role for example editors?
Also another question and I don’t want to create a new topic, the question has been asked before by other people like a year or two years ago but no definite answer to those questions.
Is there a workaround to ajaxify the ultimate member profile tabs? So it won’t have to reload the whole page when a user clicks on another tab.
Hi @arbeola12
1. Here’s a sample code snippet to apply the changing of account status to specific role subscriber
:
add_action("profile_update","um_122120_profile_update",9, 2);
function um_122120_profile_update( $user_id, $args ){
um_fetch_user( $user_id );
if( "subscriber" == um_user("role") ){
update_user_meta( $user_id, "awaiting_admin_review");
}
}
2. Unfortunately, We still don’t have tabs fully working with ajax. We’ll see in version 3 in the next couple of months.
Regards,