Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- add_filter( 'janrain_gforms_profile_data', 'add_birthday_field' );
- function add_birthday_field( $fields ) {
- $fields['birthday'] = array(
- 'name' => 'Birthday',
- 'function' => 'birthday_field'
- );
- return $fields;
- }
- function birthday_field( $profile ) {
- return $profile->merged_poco->gender;
- }
- add_filter( 'janrain_gforms_profile_data', 'add_gender_field' );
- function add_gender_field( $fields ) {
- $fields['birthday'] = array(
- 'name' => 'Gender',
- 'function' => 'gender_field'
- );
- return $fields;
- }
- function gender_field( $profile ) {
- return $profile->merged_poco->gender;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement