Created
December 24, 2018 13:37
-
-
Save kimcoleman/a9ecf4384402d005f16c52e1793df126 to your computer and use it in GitHub Desktop.
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 | |
function my_pmpro_getresponse_custom_fields( $fields, $user ) { | |
// Get fields from Register Helper user meta | |
$phone = get_user_meta($user->ID, 'mytheme_phone', true); | |
$fullname = get_user_meta($user->ID, 'mytheme_fullname', true); | |
$fields = array( | |
'telephone' => $phone, | |
'full_name' => $fullname, | |
); | |
return $fields; | |
} | |
add_filter( 'pmpro_getresponse_custom_fields', 'my_pmpro_getresponse_custom_fields', 10, 2 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment