{"id":6716618,"date":"2015-11-04T16:36:57","date_gmt":"2015-11-04T16:36:57","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/syncing-register-date\/"},"modified":"2016-08-30T19:53:11","modified_gmt":"2016-08-30T19:53:11","slug":"syncing-register-date","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/syncing-register-date\/","title":{"rendered":"syncing register date"},"content":{"rendered":"<p>I&#8217;m trying to sync the user&#8217;s register date using the following but it doesn&#8217;t seem to work.<\/p>\n<p>add_filter( &#8216;mailchimp_sync_user_data&#8217;, function( $data, $user ) {<\/p>\n<p>$udata = get_userdata( $user-&gt;ID );<br \/>\n$registered = $udata-&gt;user_registered;<\/p>\n<p>$data[&#8216;MMERGE19&#8217;] = date(&#8220;d\/m\/Y&#8221;, strtotime( $registered ));<br \/>\n    return $data;<br \/>\n}, 10, 2 );<\/p>\n<p>https:\/\/wordpress.org\/plugins\/mailchimp-sync\/<\/p>\n","protected":false},"template":"","class_list":["post-6716618","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/6716618","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/6716618\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=6716618"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}