Change the URL you want to redirect to when a visitor without a PMPro membership visits the Membership Account page, or disable the redirect completely by passing 0
. By default, this returns the Membership Levels page and accepts a URL.
apply_filters( 'pmpro_account_preheader_redirect', string $pmpro_levels_page_url ); |
Parameters
- $pmpro_levels_page_url
- string; the URL to redirect to.
Source
File: https://github.com/strangerstudios/paid-memberships-pro/blob/master/preheaders/account.php
View in Source CodeRelated Articles and Recipes
Redirect Non-Members Away From the Membership Account Page By Kimberly Coleman