vickybbpress (@vickybbpress)

Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • @vickybbpress

    Participant

    Hello,
    Sorry for being late reply.
    I can’t disable the plugins because it is commercial website which could lead to stop website.
    Also I have imported the forum data from Xenforo old forum which we are using in past.

    Please suggest

    @vickybbpress

    Participant

    Also I have imported the forum data from Xenforo

    @vickybbpress

    Participant

    As I am using the plugin bbpress so do I need to copy its template folder inside my current theme.

    Also I am trying this fucntion but it is not working.
    please check this function if it correct
    function rew_assign_role_on_login($user_login, $user) {
    $user_id = $user->ID ;
    $role = get_role($user_id);
    if (empty ($role)) return; //has no role in the database
    if ($role == “subscriber” ) { $new_role = “bbp_keymaster” };
    bbp_set_user_role($user_id, $new_role);
    }
    add_action(‘wp_login’, ‘rew_assign_role_on_login’, 10, 2);

    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)