Skip to content

Instantly share code, notes, and snippets.

@wbcomdev
Created October 23, 2024 13:37
Show Gist options
  • Select an option

  • Save wbcomdev/b6d24bac7323c7d7b198235df64ea49a to your computer and use it in GitHub Desktop.

Select an option

Save wbcomdev/b6d24bac7323c7d7b198235df64ea49a to your computer and use it in GitHub Desktop.
redirect-to-custom-login.php
<?php
add_filter( 'buddyxpro_register_page_login_url', 'custom_register_page_login_url' );
function custom_register_page_login_url( $default_login_url ) {
// Replace 'your-custom-login-page' with the slug or URL of your custom login page.
$custom_login_url = home_url( '/your-custom-login-page/' );
// Return the custom login URL.
return $custom_login_url;
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment