Last active
August 28, 2023 01:51
-
-
Save jasperf/2ac436ae5b41a29f3e0da231050e004e to your computer and use it in GitHub Desktop.
Change WordPress regisration url with a url to a page of your choosing. Useful when you have a custom registration form
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* Custom registration url using WordPress register url filter | |
* See https://wordpress.stackexchange.com/questions/127636/change-register-url-on-wp-login-page | |
*/ | |
add_filter( 'register_url', 'custom_register_url' ); | |
function custom_register_url( $register_url ) | |
{ | |
$register_url = get_permalink( $register_page_id = [REPLACE WITH YOUR PAGE ID HERE] ); | |
return $register_url; | |
} | |
/* end */ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment