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_USER_LIST_ADD::setup_action()
Setup Action.
Return Return
(Uncanny_Automatorvoid.)
Source Source
File: src/integrations/active-campaign/actions/ac-user-list-add.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( true ); /* translators: Action - WordPress */ $this->set_sentence( sprintf( esc_attr__( 'Add the user to {{a list:%1$s}}', 'uncanny-automator' ), $this->get_action_meta() ) ); /* translators: Action - WordPress */ $this->set_readable_sentence( esc_attr__( 'Add the user to {{a list}}', 'uncanny-automator' ) ); $options_group = array( $this->get_action_meta() => array( array( 'option_code' => $this->get_action_meta(), /* translators: Email field */ 'label' => esc_attr__( 'List', 'uncanny-automator' ), 'input_type' => 'select', 'supports_custom_value' => false, 'required' => true, 'is_ajax' => true, 'endpoint' => 'active-campaign-list-retrieve', 'fill_values_in' => $this->get_action_meta(), ), ), ); $this->set_options_group( $options_group ); $this->register_action(); }
Expand full source code Collapse full source code View on Github