Fetch a custom field from the database
-
I need to integrate this plugin with Mautic. I have a custom field (Mobile Number) that I have created with UsersWP.
I need to fetch that mobile number from the database and pass it to Mautic.
Per a Mautic developer the Mautic side code is
add_filter('wpmautic_tracking_attributes', function(array $attributes) { $phone = …; //whatever is to retrieve the phone number $attributes['sitephonenumber'] = $phone; return $attributes; });
Any input on what logic I would use to pull that WpUsers custom field in?
Viewing 11 replies - 1 through 11 (of 11 total)
Viewing 11 replies - 1 through 11 (of 11 total)
- The topic ‘Fetch a custom field from the database’ is closed to new replies.