• Resolved D

    (@dv30112)


    Hi,

    I’m experimenting. I’m using a custom function to add one custom field of new user meta at the same time a new WordPress user is created. That works fine.

    But WPF doesn’t sync that custom field to my CRM. The field is linked in Contact Fields settings. It only syncs if I manually go to the user admin and click “Update Profile.”

    I think this function is what’s needed, but it didn’t work for me. Any tips on this?

    function my_watch_meta_field( $fields ) {
    	$fields[] = 'my_field_name';
    	return $fields;
    }
    add_filter( 'wpf_watched_meta_fields', 'my_watch_meta_field' );

    https://wpfusion.com/documentation/filters/wpf_watched_meta_fields/

Viewing 1 replies (of 1 total)
  • Plugin Author Jack Arturo

    (@verygoodplugins)

    Hey @dv30112 ,

    Yeah that’s the filter you’d want to use. What’s the name of your field key? You’ll need to replace “my_field_name” in that code example with the database key of your custom field.

Viewing 1 replies (of 1 total)
  • The topic ‘Sync a custom meta field on user registration’ is closed to new replies.