Warning: Array to string conversion in /home/customer/www/docs.automatorplugin.com/public_html/wp-content/themes/wporg-developer/inc/template-tags.php on line 825
HUBSPOT_REMOVEUSERFROMLIST::remove_contact_from_list( $user_id, $action_data, $recipe_id, $args )
Action validation function.
Return Return
(mixed)
Source Source
File: src/integrations/hubspot/actions/hubspot-removeuserfromlist.php
public function remove_contact_from_list( $user_id, $action_data, $recipe_id, $args ) { $helpers = Automator()->helpers->recipe->hubspot->options; $user_data = get_userdata( $user_id ); $email = $user_data->user_email; $list = trim( Automator()->parse->text( $action_data['meta']['HUBSPOTLIST'], $recipe_id, $user_id, $args ) ); try { $response = $helpers->remove_contact_from_list( $list, $email, $action_data ); Automator()->complete_action( $user_id, $action_data, $recipe_id ); } catch ( \Exception $e ) { $helpers->log_action_error( $e->getMessage(), $user_id, $action_data, $recipe_id ); } }
Expand full source code Collapse full source code View on Github