HUBSPOT_ADDCONTACTTOLIST::define_action()
Define and register the action by pushing it into the Automator object.
Source
File: src/integrations/hubspot/actions/hubspot-addcontacttolist.php
public function define_action() { $action = array( 'author' => Automator()->get_author_name( $this->action_code ), 'support_link' => Automator()->get_author_support_link( $this->action_code, 'integration/hubspot/' ), 'integration' => self::$integration, 'code' => $this->action_code, // translators: the selected HubSpot static list name 'sentence' => sprintf( __( 'Add a HubSpot contact to {{a static list:%1$s}}', 'uncanny-automator' ), $this->action_meta ), 'select_option_name' => __( 'Add a HubSpot contact to {{a static list}}', 'uncanny-automator' ), 'priority' => 10, 'accepted_args' => 1, 'requires_user' => false, 'execution_function' => array( $this, 'add_contact_to_list' ), 'options_callback' => array( $this, 'load_options' ), ); Automator()->register->action( $action ); }
Expand full source code Collapse full source code View on Github