Install
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.zipNo 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-profilenavigation. - Redirects users from
/lp-profile/{username}to/lp-profile/{username}/programs.
How to Use
- Add this code to your
functions.phpin a child theme, or - Convert it into a standalone plugin by copying it into a
.phpfile inside/wp-content/plugins/.
Compatibility
✅ Tested with:
- LearnPress 4.x
- Hello Elementor Theme
- Custom tabs like
/programs/