Created
October 12, 2017 13:33
-
-
Save spivurno/ad05a8543ea6b2a6a4845f1caf1fe675 to your computer and use it in GitHub Desktop.
Gravity Perks // GP Unique ID // Use Unique ID as User Registration Password
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 | |
/** | |
* Gravity Perks // GP Unique ID // Use Unique ID as User Registration Password | |
* http://gravitywiz.com/documentation/gravity-forms-unique-id/ | |
*/ | |
add_filter( 'gform_userregistration_feed_settings_fields', function( $fields, $form ) { | |
foreach( $fields['user_settings']['fields'] as &$field ) { | |
if( $field['name'] == 'password' ) { | |
$field['args']['input_types'][] = 'uid'; | |
} | |
} | |
return $fields; | |
}, 10, 2 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey @g-rzegorz, hit us up via support and we'll be happy to dig in: http://gravitywiz.com/support/