WP Manifestindependent plugin directory
manifest / builders / learnpress-snnipets

LearnPress - Custom Default Tab

Snnipets for LearnPress

★ 0stars

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/gabrielmaafra/learnpress-snnipets/archive/refs/heads/main.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

This WordPress snippet for LearnPress:

  • Removes the default "My Courses and Courses" tab from the /lp-profile navigation.
  • Redirects users from /lp-profile/{username} to /lp-profile/{username}/programs.

How to Use

  1. Add this code to your functions.php in a child theme, or
  2. Convert it into a standalone plugin by copying it into a .php file inside /wp-content/plugins/.

Compatibility

✅ Tested with:

  • LearnPress 4.x
  • Hello Elementor Theme
  • Custom tabs like /programs/