• Resolved mellemeijer

    (@mellemeijer)


    In Tutor LMS you have the option to change the slug of several pages.

    But for the link to a course bundle, we now have, for example:

    /training/course-bundle/coachtraining-rotterdam/

    Is there a way to change this slug as well? I don’t see this option in the settings.

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

    Unfortunately, there is no option in the settings to change the slug of a course bundle directly. However, you can change the slug by adding the following code to your theme’sfunctions.php file.

    function change_tutor_course_bundle_slug( $args, $post_type ) {
    if ( 'course-bundle' === $post_type ) {
    $args['rewrite']['slug'] = 'new-course-bundle'; // Change the slug to 'new-courses'
    }
    return $args;
    }
    add_filter( 'register_post_type_args', 'change_tutor_course_bundle_slug', 10, 2 );

    I hope this will fulfill your requirements. If you have any further clarifications, then let us know.

    Your regards,
    Sunjida

    Thread Starter mellemeijer

    (@mellemeijer)

    Thanks again @sunjida1106, that did the trick!

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