-
-
Save bappi-d-great/cd8edd4aa6406c1543306d3c596ed59b to your computer and use it in GitHub Desktop.
M2 + Gravity Forms Registration
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
add_filter('ms_frontend_custom_registration_form','gravity_register_form') ; | |
function gravity_register_form($form) { | |
if(!is_user_logged_in()) | |
return do_shortcode('[gravityform id =1]'); | |
return $form ; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment