For developers who want to send more than a name and email address to AWeber, the AWeber Integration Add On offers one filter hook. Use it to fill AWeber custom fields with data from WordPress, such as user meta or membership details.

Filters

pmpro_aweber_custom_fields

Filters the custom fields sent to AWeber each time the Add On subscribes a user to a list. Return an array of AWeber custom field names and values. The fields must already exist on your AWeber list. When the array is empty (the default), only the email address and name are sent.

The filter runs once for every list the user is subscribed to, at registration and on every level change, so the same values are sent to each list.

apply_filters( 'pmpro_aweber_custom_fields', array $custom_fields, WP_User $list_user );

Parameters

  • $custom_fields: array; AWeber custom field names and values as key => value pairs. Default empty array.
  • $list_user: WP_User; The user being subscribed.

Here is a recipe that demonstrates using this filter to send a user meta value to an AWeber custom field.

Last updated on November 19, 2026


Was this article helpful?
YesNo