Created
June 18, 2019 12:44
-
-
Save yanknudtskov/683ed7c87e330a972d888c06a964c9a4 to your computer and use it in GitHub Desktop.
WooCommerce Sensei LMS - How to change slugs of /course and /lesson
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
<?php | |
add_filter( 'sensei_course_slug', 'yanco_sensei_course_slug', 1000 ); | |
function yanco_sensei_course_slug( ) { | |
return 'kursus'; | |
} | |
add_filter( 'sensei_lesson_slug', 'yanco_sensei_lesson_slug', 1000 ); | |
function yanco_sensei_lesson_slug() { | |
return 'lektion'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment