Last active
December 20, 2018 17:01
-
-
Save strangerstudios/c2bccdfd598fbb6ef6e8 to your computer and use it in GitHub Desktop.
Sync user fields with GetResponse with PMPro GetResponse
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
/* | |
Sync user fields with GetResponse | |
Add this code to your active theme's functions.php or a custom plugin. | |
*/ | |
function my_pmpro_getresponse_custom_fields($fields, $user) { | |
$fields['city'] = $user->city; | |
$fields['state'] = $user->state; | |
$fields['postal_code'] = $user->postal_code; | |
$fields['category'] = $user->category; | |
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