• Resolved futureskills

    (@futureskills)


    Hello, i am using masterstudy theme and show offline courses and set the course url xxxxx.com/courses/course_name

    i install tutor lms plugin and i found that the plugin use the same permalink /courses/

    my question how to change the tutor lms plugin permalink to another url such as xxxx.com/online_courses

    also how to change the course-category url because it is similar to currently used

    • This topic was modified 2 years, 2 months ago by futureskills.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Md. Jobayer Al Mahmud

    (@jobayertuser)

    Hello @futureskills

    To change course slug paste this code in your theme function.php

    add_filter( 'register_post_type_args', 'wpcourse_register_post_type_args', 10, 2 );
    function wpcourse_register_post_type_args( $args, $post_type ) {
    
    if ( 'courses' === $post_type ) {
    $args['rewrite']['slug'] = 'corsi'; //here add your new slug
    }
    
    return $args;
    }
    

    Then go to wp-admin > settings > permalinks > hit the save change again

    Thread Starter futureskills

    (@futureskills)

    thanks a lot, i do it in the theme and success

    also i have a question it is better to make this change to the dafult theme or the child theme ?

    Plugin Support Md. Jobayer Al Mahmud

    (@jobayertuser)

    Hello @futureskills

    Using child theme is better.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘how to change course permalink’ is closed to new replies.