Created
February 7, 2014 22:17
-
-
Save strangerstudios/8873136 to your computer and use it in GitHub Desktop.
Add a custom field to user data using pmpro-constant-contact.
This file contains 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
//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