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
AUDIENCE_ADDAUSER::load_options()
load_options
Return Return
(void)
Source Source
File: src/integrations/mailchimp/actions/audience-addauser.php
public function load_options() { return array( 'options_group' => array( $this->action_meta => array( Automator()->helpers->recipe->mailchimp->options->get_all_lists( __( 'Audience', 'uncanny-automator' ), 'MCLIST', array( 'is_ajax' => true, 'target_field' => 'MCLISTGROUPS', 'endpoint' => 'select_mcgroupslist_from_mclist', ) ), Automator()->helpers->recipe->mailchimp->options->get_double_opt_in( __( 'Double opt-in', 'uncanny-automator' ), 'MCDOUBLEOPTIN', array( 'description' => __( 'When set to "yes", a confirmation email will be sent before the user is added to the selected audience.', 'uncanny-automator' ), ) ), Automator()->helpers->recipe->mailchimp->options->get_double_opt_in( __( 'Update existing', 'uncanny-automator' ), 'MCUPDATEEXISTING', array( 'description' => __( 'If this is set to Yes, the information provided will be used to update the existing user. Fields that are left blank will not be updated.', 'uncanny-automator' ), ) ), Automator()->helpers->recipe->mailchimp->options->get_double_opt_in( __( 'Change groups?', 'uncanny-automator' ), 'MCCHANGEGROUPS', array( 'options' => array( array( 'value' => 'replace-all', 'text' => __( 'Replace all', 'uncanny-automator' ), ), array( 'value' => 'add-only', 'text' => __( 'Add only', 'uncanny-automator' ), ), array( 'value' => 'replace-matching', 'text' => __( 'Remove matching', 'uncanny-automator' ), ), ), 'description' => __( "Add only: The group(s) specified below will be added to the subscriber's existing groups/interests. Replace All: All of the subscriber's existing groups will be cleared, and replaced with the groups selected below. \n Remove Matching: Clears any existing group selections only for the groups specified below.", 'uncanny-automator' ), ) ), Automator()->helpers->recipe->mailchimp->options->get_list_groups( __( 'Groups', 'uncanny-automator' ), 'MCLISTGROUPS', array( 'required' => false, ) ), Automator()->helpers->recipe->field->text_field( 'MCLANGUAGECODE', __( 'Language code', 'uncanny-automator' ), true, 'text', null, false ), array( 'option_code' => 'MERGE_FIELDS', 'input_type' => 'repeater', 'label' => __( 'Merge fields', 'uncanny-automator' ), /* translators: 1. Button */ 'description' => '', 'required' => true, 'fields' => array( array( 'option_code' => 'FIELD_NAME', 'label' => __( 'Field', 'uncanny-automator' ), 'input_type' => 'text', 'required' => true, 'read_only' => true, 'options' => array(), ), Automator()->helpers->recipe->field->text_field( 'FIELD_VALUE', __( 'Value', 'uncanny-automator' ), true, 'text', '', false ), ), 'add_row_button' => __( 'Add pair', 'uncanny-automator' ), 'remove_row_button' => __( 'Remove pair', 'uncanny-automator' ), 'hide_actions' => true, ), ), ), ); }
Expand full source code Collapse full source code View on Github