Skip to:
Content
Pages
Categories
Search
Top
Bottom

bp integrated with wplms


  • garciasanchezdani
    Participant

    @garciasanchezdani

    Hi, I have a theme called wplms.

    I need to allow instructors of courses to register in website directly as instructors (not students) and I need too that the administrator have not to moderate each instructor’s registration.

    For it, I’ve modified core of bp-members/bp-members-classes.php

    In line 314, I have commented the line:

    $wpdb->query( $wpdb->prepare( "UPDATE {$wpdb->users} SET user_status = 2 WHERE ID = %d", $user_id ) );

    because I want activate the user (instructor) just registered

    And in lines 319 and 320 I’ve commented:

    delete_user_option( $user_id, ‘capabilities’ );
    delete_user_option( $user_id, ‘user_level’ );

    because these lines are overwritting the capalities that I previously defined.

    But I want to do this without modify the core. Could you give me a better way?
    Thanks very much.

    NOTE: I’ve noticed that the user registered appears in wp admin > users as instructors as well…but too as pendings…

  • The topic ‘bp integrated with wplms’ is closed to new replies.
Skip to toolbar