Skip to content

Instantly share code, notes, and snippets.

@strangerstudios
Last active December 20, 2018 17:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save strangerstudios/c2bccdfd598fbb6ef6e8 to your computer and use it in GitHub Desktop.
Save strangerstudios/c2bccdfd598fbb6ef6e8 to your computer and use it in GitHub Desktop.
Sync user fields with GetResponse with PMPro GetResponse
/*
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