AC_USER_ADD::get_field()
Source
File: src/integrations/active-campaign/actions/ac-user-add.php
public function get_field() { $custom_fields = get_transient( 'ua_ac_contact_fields_list' ); $ac_helper = Automator()->helpers->recipe->active_campaign->options; if ( false === $custom_fields ) { $ac_helper->sync_contact_fields( false ); } $fields = array( array( 'option_code' => $this->prefix . '_PHONE_NUMBER', 'label' => esc_attr__( 'Phone number', 'uncanny-automator' ), 'placeholder' => esc_attr__( '(+00) 987 123 4567', 'uncanny-automator' ), 'input_type' => 'text', 'required' => false, ), ); // Add the custom fields options. $fields = array_merge( $fields, $ac_helper->get_custom_fields( $this->prefix ) ); // Add the checkbox. $fields[] = array( 'option_code' => $this->prefix . '_UPDATE_IF_CONTACT_EXISTS', 'label' => esc_attr__( 'If the contact already exists, update their info.', 'uncanny-automator' ), 'input_type' => 'checkbox', ); return $fields; }
Expand full source code Collapse full source code View on Github