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/indigetal/pmpro-snippet-mgr/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.
Description
This addon compiles a number of useful custom code snippets for Paid Memberships Pro in a user-friendly interface making it easier for administrators to apply these customizations.
Installation
- Upload the
pmpro-snippet-mgrfolder to the/wp-content/plugins/directory. - Activate the plugin through the 'Plugins' menu in WordPress.
Settings
Navigate to Memberships > Snippet Manager to configure the following options:
- Disable PMPro redirect to levels page: Checkbox to disable the default PMPro behavior that redirects to the levels page during user registration.
- Default Membership Level: Number input to specify the default membership level ID to newly registered users.
- Set Posts to Draft on Membership Cancel: Checkbox to enable/disable setting member author’s posts to draft when their membership is cancelled.
- Custom Redirects: Dynamic form allowing the addition of multiple redirect rules with fields for the required level IDs, the restricted URLs, and the redirect URL.