Send WordPress User Meta To Zapier

WP Zapier Integration

In this example, you will learn how to send user meta to Zapier (WP Zapier v1.3+) whenever a user’s profile gets updated inside WordPress.

This will require a bit of custom PHP code to achieve. If you are not familiar with PHP code, we highly recommend in reaching out to a local WordPress developer to assist you with this code.

Let’s have a look at the code:

In the code above, we’re using the default get_user_meta() WordPress function. You can almost insert any code and add it to the $array value to send data to Zapier. This could include custom data from tables, static data or removing data that’s not needed at all.

The example gets user meta that has a meta key of “spouse” and a value of “Cherie”.

Once this code has been added to your custom plugin / child theme’s functions.php this is what you would see when setting up your Zap in Zapier:

Sample of retrieving user meta field in a webhook for Zapier.
Sample of retrieving data in a webhook for Zapier.
Assigning the user meta data to a field in Google Sheets via Zapier.
Assigning the data to a field in Google Sheets via Zapier.

Related Articles: