esc_html__( 'Active Campaign Integration', 'active-campaign-wpforms' ), 'form' => true, 'submit' => esc_html__( 'Save Settings', 'active-campaign-wpforms' ), ); return $tabs; } public function add_fields($defaults){ $defaults['ac-integration'] = array( 'ac-heading' => array( 'id' => 'ac-heading', 'content' => '
' . esc_html__( 'Add your Active Campaign API credentials here.This is a global setting area,you can also add API keys seperately for each forms.', 'active-campaign-wpforms' ) . '
', 'type' => 'content', 'no_label' => true, 'class' => array( 'section-heading' ), ), 'ac-url' => array( 'id' => 'ac-url', 'name' => esc_html__( 'Active Campaign URL', 'active-campaign-wpforms' ), 'type' => 'text', 'desc' => sprintf(esc_html__( 'You can get url from %s.', 'ac-wpforms-pro' ),'here'), ), 'ac-apikey' => array( 'id' => 'ac-apikey', 'name' => esc_html__( 'API Key', 'active-campaign-wpforms' ), 'type' => 'text', 'desc' => sprintf(esc_html__( 'You can get API key from %s.', 'ac-wpforms-pro' ),'here'), ), 'ac-listid' => array( 'id' => 'ac-listid', 'name' => esc_html__( 'List ID', 'active-campaign-wpforms' ), 'type' => 'text', 'desc' => sprintf(esc_html__( 'You can get API key from %s.', 'ac-wpforms-pro' ),'here'), ), ); return $defaults; } public function assign_ac_fields_menu($sections){ $sections['ac-integration'] = 'Active Campaign Integration'; $sections['assign-acfields'] = 'Assign Form Fields to AC'; return $sections; } public function assign_ac_fields($settings){ //AC Integration Tab echo '