Last active
August 10, 2016 13:23
-
-
Save sjaved87/c12a98fdc767f37d1be83e83e8d80328 to your computer and use it in GitHub Desktop.
Using this snippet you can change the default register link with your custom registration page link (created by GF form user registration add-on) and also optionally change the "Register" text.
This file contains 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 | |
add_filter( 'register', 'sjaved_register_link' ); | |
function sjaved_register_link( $link ) { | |
/*Required: Replace Register_URL with the URL of registeration*/ | |
$custom_register_link = 'Register_URL'; | |
/*Optional: You can optionally change the register text e.g. Signup*/ | |
$register_text = 'Register'; | |
$link = sprintf('<a href="%1$s">%2$s</a>', $custom_register_link, $register_text) ; | |
return $link; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment