Skip to content

Instantly share code, notes, and snippets.

@codezz
Last active March 4, 2021 09:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save codezz/8ce3909871115195f0fba014be7ab35d to your computer and use it in GitHub Desktop.
Save codezz/8ce3909871115195f0fba014be7ab35d to your computer and use it in GitHub Desktop.
Change BP Restrict PMPRO redirect URL
<?php
add_filter( 'bp_restrict_pmpro_url_redirect', 'bpr_change_bp_restrict_url' );
function bpr_change_bp_restrict_url( $url ) {
return 'https://mysite.com/login';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment