Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save greathmaster/de3a997f47a3abfd9f9ff345b64921a2 to your computer and use it in GitHub Desktop.
Save greathmaster/de3a997f47a3abfd9f9ff345b64921a2 to your computer and use it in GitHub Desktop.
Filter the BuddyPress Registration page to the Membership Levels page.
<?php
/*
Filter the BuddyPress Registration page to the Membership Levels page.
*/
function my_bp_get_signup_page( $page )
{
//is PMPro activated?
if(defined('PMPRO_VERSION'))
{
//filter the BuddyPress registration page to PMPro levels page
$page = pmpro_url('levels');
}
return $page;
}
add_filter( 'bp_get_signup_page' , 'my_bp_get_signup_page' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment