• Hello!

    I’ve created a zap that runs when a new user is added to my WordPress site and that will send the user’s information to a list in Hubspot. I’m trying to send a custom field created when the user registers.

    I’ve already identified the meta. Now, what could you recommend me to be able to send this custom field to Zapier as part of the User info (Last Name, First Name, etc.)

    Thank you in advance!

Viewing 6 replies - 1 through 6 (of 6 total)
  • Moderator bcworkz

    (@bcworkz)

    I recommend using WP_Http::request() to send data to other servers. There are usually a number of choices you could use to send data. What’s nice about WP_Http class is it picks the best method available on your server. Regardless of the method it uses, you always are using the same interface. It takes some of the headache out of inter sever communications.

    Thread Starter aehernandez

    (@aehernandez)

    Thank you @bcworkz!

    I’ll do some tests and let you know.

    • This reply was modified 6 years, 3 months ago by aehernandez.

    Did you get this working @aehernandez? I’m trying to do a similar thing…

    Thread Starter aehernandez

    (@aehernandez)

    Hello @andywillers !

    Sorry for the late reply. Yes, I managed to send the custom info by copying the data to one of the default fields that appear in Zapier. This is my code:

    add_action( 'user_register', 'my_save_extra_fields', 10, 1 );
    
    function my_save_extra_fields( $user_id ) {
       $user = get_userdata( $user_id );
       $interes =  $user->ep_interes;
       $user_data = wp_update_user( array( 'ID' => $user_id, 'description' => $interes ) );
        if ( isset( $_POST['description'] ) )
            update_user_meta($user_id, 'description', $_POST['description']);
    
    }

    I’ve used a plugin called WP Zapier, it’s not free but it works well ??

    Thread Starter aehernandez

    (@aehernandez)

    Thank you for the info @thatwpdude! I’ll check it out

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Send custom user meta to Zapier’ is closed to new replies.