AUDIENCE_REMOVEUSERTAG::define_action()
Define and register the action by pushing it into the Automator object
Source Source
File: src/integrations/mailchimp/actions/audience-removeusertag.php
public function define_action() { global $uncanny_automator; $action = array( 'author' => $uncanny_automator->get_author_name( $this->action_code ), 'support_link' => $uncanny_automator->get_author_support_link( $this->action_code, 'knowledge-base/mailchimp/' ), 'is_pro' => false, 'integration' => self::$integration, 'code' => $this->action_code, 'sentence' => sprintf( __( 'Remove {{a tag:%1$s}} from the user', 'uncanny-automator' ), $this->action_meta ), 'select_option_name' => __( 'Remove {{a tag}} from the user', 'uncanny-automator' ), 'priority' => 10, 'accepted_args' => 1, 'execution_function' => array( $this, 'remove_tag_audience_member' ), 'options_group' => array( $this->action_meta => array( $uncanny_automator->helpers->recipe->mailchimp->options->get_all_lists( __( 'Audience', 'uncanny-automator' ), 'MCLIST', array( 'is_ajax' => true, 'target_field' => 'MCLISTTAGS', 'endpoint' => 'select_mctagslist_from_mclist', ) ), $uncanny_automator->helpers->recipe->mailchimp->options->get_list_tags( __( 'Tags', 'uncanny-automator' ), 'MCLISTTAGS', array( 'is_ajax' => true, ) ), ), ), ); $uncanny_automator->register->action( $action ); }
Expand full source code Collapse full source code View on Github