• Resolved arbeola12

    (@arbeola12)


    is there a way to put a user profile on moderation/pending review when the user updates his/her profile? so that the admin can manually review before the profile is displayed in the member’s directory?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor Champ Camba

    (@champsupertramp)

    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,

    Thread Starter arbeola12

    (@arbeola12)

    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?

    Thread Starter arbeola12

    (@arbeola12)

    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.

    Plugin Contributor Champ Camba

    (@champsupertramp)

    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,

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘put member profile on pending for review.’ is closed to new replies.