Support » Plugin: BuddyPress Registration Options » Make user pending

  • Resolved tonio7788

    (@tonio7788)


    Hi, I use “contact form 7 frontend registration” for register users.

    “bp registration option” is not compatible and admin approval is not necessary.

    I try to add :

    update_user_meta( $user_id, '_bprwg_is_moderated', true );

    After user is created with wp_insert_user function.

    But is seems it is not sufficient.

    I have to add an other code ?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Michael Beckwith

    (@tw2113)

    The BenchPresser

    Not sure at the moment, to be honest. If the CF7 frontend registration ends up triggering the user_register core WordPress hook, then our setup should be working and at least adding the user meta we utilize. That’s the hook we tap into for marking users as moderated.

    Yes but wich meta value add to marking user as pending ?

    Plugin Author Michael Beckwith

    (@tw2113)

    The BenchPresser

    Not sure how I missed seeing this.

    To mark them as moderated:

    update_user_meta( $user_id, '_bprwg_is_moderated', 'true' );
    

    To mark them as not moderated:

    update_user_meta( $user_id, '_bprwg_is_moderated', 'false' );
    

    You can also use our built-in function if you prefer:

    //Set $status to either "true" or "false" as a string, not as a boolean.
    bp_registration_set_moderation_status( $user_id, $status );
    
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Make user pending’ is closed to new replies.