Skip to content

Instantly share code, notes, and snippets.

@yanknudtskov
Created June 18, 2019 12:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yanknudtskov/683ed7c87e330a972d888c06a964c9a4 to your computer and use it in GitHub Desktop.
Save yanknudtskov/683ed7c87e330a972d888c06a964c9a4 to your computer and use it in GitHub Desktop.
WooCommerce Sensei LMS - How to change slugs of /course and /lesson
<?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