Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save strangerstudios/8873136 to your computer and use it in GitHub Desktop.
Save strangerstudios/8873136 to your computer and use it in GitHub Desktop.
Add a custom field to user data using pmpro-constant-contact.
//filter constant contact fields
function my_pmpro_constant_contact_custom_fields($fields, $user)
{
$fields[] = array("name"=>"CustomField1", "value"=>$user->user_login);
return $fields;
}
add_filter("pmpro_constant_contact_custom_fields", "my_pmpro_constant_contact_custom_fields", 10, 2);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment