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
AC_ANNON_REMOVETAG::setup_action()
Setup Action.
Return Return
(Uncanny_Automatorvoid.)
Source Source
File: src/integrations/active-campaign/actions/ac-annon-removetag.php
protected function setup_action() { $this->set_integration( 'ACTIVE_CAMPAIGN' ); $this->set_action_code( $this->prefix . '_CODE' ); $this->set_action_meta( $this->prefix . '_META' ); $this->set_is_pro( false ); $this->set_requires_user( false ); /* translators: Action - WordPress */ $this->set_sentence( sprintf( esc_attr__( 'Remove {{a tag:%1$s}} from {{a contact:%2$s}}', 'uncanny-automator' ), $this->get_action_meta(), $this->prefix . '_CONTACT_ID' . ':' . $this->get_action_meta() ) ); /* translators: Action - WordPress */ $this->set_readable_sentence( esc_attr__( 'Remove {{a tag}} from {{a contact}}', 'uncanny-automator' ) ); $options_group = array( $this->get_action_meta() => array( array( 'option_code' => $this->get_action_meta(), /* translators: Email field */ 'label' => esc_attr__( 'Tag', 'uncanny-automator' ), 'input_type' => 'select', 'supports_custom_value' => false, 'required' => true, 'is_ajax' => true, 'endpoint' => 'active-campaign-list-tags', 'fill_values_in' => $this->get_action_meta(), ), array( 'option_code' => $this->prefix . '_CONTACT_ID', /* translators: Contact field */ 'label' => esc_attr__( 'Email', 'uncanny-automator' ), 'placeholder' => esc_attr__( 'me@domain.com', 'uncanny-automator' ), 'input_type' => 'email', 'required' => true, ), ), ); $this->set_options_group( $options_group ); $this->register_action(); }
Expand full source code Collapse full source code View on Github