Disable required activation user BP

Home Forums Legacy Support Support queries How-to & Troubleshooting Disable required activation user BP

Tagged: 

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #118370
    mekello
    Spectator
    Hi, I'm trying to disable the require activation of new users registered by BP. I've tried using the following cose in functions.php, but it does not work. I want that administrators don't need to activate users. Can you help me please? PS. I'm using different registration forms (one for Students, one for Instructors). function disable_validation( $user_id ) { global $wpdb;   $wpdb->query( $wpdb->prepare( "UPDATE $wpdb->users SET user_status = 0 WHERE ID = %d", $user_id ) ); } add_action( 'bp_core_signup_user', 'disable_validation' );   function fix_signup_form_validation_text() { return false; } add_filter( 'bp_registration_needs_activation', 'fix_signup_form_validation_text' );  
    #118401
    H.K. Latiyan
    Participant
    Hi... Try using wplms registration form for this, you can easily disable the activation process in it. Please refer this tutorial : https://vibethemes.com/documentation/wplms/knowledge-base/custom-registration-forms-in-wplms/
Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘Disable required activation user BP’ is closed to new replies.