Skip to content
Learnomy

Pages and URL Slugs

The Pages section is where you localize or rename the URL segments for every Learnomy page, see the full list of frontend pages on your site, and find the folder to copy templates into for a theme override.

What you can do

  • Rename each URL segment (course base, lesson, quiz, category, instructor, and more) so links read in your language, for example kurse and lektion for German.
  • Change a slug and have Learnomy refresh your WordPress permalink rules automatically on save.
  • See a read-only table of every Learnomy frontend page, its URL, whether login is required, and a View link for static pages.
  • Leave any slug field blank to keep the built-in default.
  • Find the exact theme folder to copy a template into when you want to override the markup.

Pages and URL Slugs first view

How to use it

Step 1 -- open Pages

Go to Learnomy Settings and click Pages in the sidebar.

Step 2 -- edit the URL slugs

In the URL Slugs card, change any segment you want to localize or rebrand. Leave a field blank to keep its default. The fields are:

  • Course URL Base -- the prefix for course pages (default courses).
  • Lesson URL Segment -- the segment inside a lesson URL (default lesson).
  • Course Quiz URL Segment -- the segment inside a course quiz URL (default quiz).
  • Category URL Segment -- the segment inside a category archive URL (default category).
  • Instructor URL Base -- the base for the instructor dashboard and public profiles (default instructor).
  • Certificate Verify URL Base -- the base for public certificate verification links (default verify).
  • Standalone Quiz URL Base -- the base for quizzes not attached to a course (default quiz).
  • Membership URL Base -- the base for the public membership pricing page (default membership).
  • My Spaces URL -- the Spaces dashboard URL (default my-spaces; requires the Pro Spaces extension to render).
  • Enroll URL Base -- the base for checkout pages (default enroll).
  • Account URL Base -- the base for the account and billing pages (default account).

Step 3 -- save

Click Save Changes. Saving any slug change automatically refreshes your permalink rules, so the new URLs work right away.

Step 4 -- check the Frontend Pages table

The Frontend Pages card lists every Learnomy page with its live URL, an access badge (Public or Login required), and a View link for static pages. Pages whose URL contains a placeholder in braces (for example {course-slug}) are marked Dynamic and have no direct View link.

Step 5 -- override a template (optional)

The Theme Override card shows the folder path (your active theme's learnomy/ directory). Copy any file from the plugin's templates/ folder into that path and edit it there to customise the markup for that page.

Settings and options

Every slug saves into the learnomy_settings option under its own key.

Field Option key Default
Course URL Base base_slug courses
Lesson URL Segment lesson_slug lesson
Course Quiz URL Segment quiz_slug quiz
Category URL Segment category_slug category
Instructor URL Base instructor_slug instructor
Certificate Verify URL Base verify_slug verify
Standalone Quiz URL Base standalone_quiz_slug quiz
Membership URL Base membership_slug membership
My Spaces URL my_spaces_slug my-spaces
Enroll URL Base enroll_slug enroll
Account URL Base account_slug account

The Frontend Pages table and Theme Override path are read-only; they have no save button.

For developers

Every slug is also exposed as a filter, so you can set it in code instead of the UI. The filter wins over the saved setting.

  • learnomy_base_slug, learnomy_lesson_slug, learnomy_quiz_slug, learnomy_category_slug, learnomy_instructor_slug, learnomy_verify_slug, learnomy_standalone_quiz_slug, learnomy_membership_slug, learnomy_my_spaces_slug, learnomy_enroll_slug, learnomy_account_slug -- one filter per slug (see \Learnomy\reslug_keys() in includes/functions.php for the full map).
  • Slugs feed the declarative Route Registry in includes/class-routes.php, which is the single source for both the rewrite rules and URLs. Build every front URL with \Learnomy\route_url( $name, $args ) -- never hardcode home_url('/courses/...').
  • learnomy_routes -- filter for registering additional routes (Pro extensions use this so route_url() can build their URLs too).