Forked from nayeemch/tutor-lms-change-default-course-base-slug
Created
July 16, 2023 20:20
-
-
Save bernhardkaindl/b85f13d3a6823749f12345191caf4a97 to your computer and use it in GitHub Desktop.
This code will help you to change base slug `courses` to your preferred slug, replace `example-course-slug` with your own slug.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_filter('tutor_courses_base_slug', 'change_tutor_course_slug'); | |
/** | |
* @param $slug | |
* @return string | |
*/ | |
if ( ! function_exists('change_tutor_course_slug')){ | |
function change_tutor_course_slug($slug){ | |
$slug = 'example-course-slug'; | |
return $slug; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment