Viewing 2 replies - 1 through 2 (of 2 total)
  • Hello @alhikmahsoftware

    Go to your active theme’s function.php file and paste the given code:

    $instructor_role = tutor()->instructor_role;
    remove_role($instructor_role);
    add_role( $instructor_role, __('Tutor Instructor', 'tutor'), array() );

    $custom_post_type_permission = array(
    //Manage Instructor
    'manage_tutor_instructor',
    //Tutor Posts Type Permission
    'edit_tutor_course',
    'read_tutor_course',
    'delete_tutor_course',
    'delete_tutor_courses',
    'edit_tutor_courses',
    'edit_others_tutor_courses',
    'read_private_tutor_courses',
    'edit_tutor_courses',
    'edit_tutor_lesson',
    'read_tutor_lesson',
    'delete_tutor_lesson',
    'delete_tutor_lessons',
    'edit_tutor_lessons',
    'edit_others_tutor_lessons',
    'read_private_tutor_lessons',
    'edit_tutor_lessons',
    'publish_tutor_lessons',
    'edit_tutor_quiz',
    'read_tutor_quiz',
    'delete_tutor_quiz',
    'delete_tutor_quizzes',
    'edit_tutor_quizzes',
    'edit_others_tutor_quizzes',
    'read_private_tutor_quizzes',
    'edit_tutor_quizzes',
    'publish_tutor_quizzes',
    'edit_tutor_question',
    'read_tutor_question',
    'delete_tutor_question',
    'delete_tutor_questions',
    'edit_tutor_questions',
    'edit_others_tutor_questions',
    'publish_tutor_questions',
    'read_private_tutor_questions',
    'edit_tutor_questions',
    );
    $administrator = get_role( 'administrator' );
    if ( $administrator ) {
    $administrator_cap = array (
    'manage_tutor',
    );
    $administrator_cap = array_merge($administrator_cap, $custom_post_type_permission);
    $administrator_cap[] = 'publish_tutor_courses';
    foreach ($administrator_cap as $cap){
    $administrator->add_cap( $cap );
    }
    }

    Hope this will resolve your issue. If you are still facing problem feel free to reach us. Thank You.

    If your problem is solved kindly check the thread as Resolved.

    Best Regards
    Dip Saha

    why was this issue caused? is this because of non-sufficient user roles due to a security plugins? which disallows tutor lms to change functions.php automatically ?

    happened with me too and then i had to use this solution to make it work

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.