Embed Snippet on Your Site
MemberPress: Change Membership Registration URL
Each MemberPress Membership has an automatically generated registration page with its default URL.
This code snippet will replace the default registration page URL with a custom URL. This way, a custom registration page can be created, and set to be used instead of the default one.
The code must be adjusted to match the real membership. Thus, a dummy membership ID of 123 should be replaced with the ID of the actual membership (Membership IDs are available at Dashboard > MemberPress > Memberships), on the following line:
case '123':
Also, the dummy page ID of 456 should be replaced with the real ID of the custom registration page, on this line:
$url = MeprUtils::get_permalink( 456 ).$args;
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
Comments