Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.

MP_Addon_Zoho::get_duplicate_fields()

Get duplicate fields.


Return Return

(array) fields


Top ↑

Source Source

File: calculator-zoho-add-on/inc/MP_Addon_Zoho.php

	private function get_duplicate_fields(){

		$field = get_option(MortgagePlatform::$prefix . 'zoho')['zoho_duplicate_fields'] ?? '';

		$duplicate_fields = array('Email');
		switch ($field){
			case 'email':
				$duplicate_fields = array('Email');
				break;
			case 'phone':
				$duplicate_fields = array('Phone');
				break;
			case 'email_phone':
				$duplicate_fields = array('Email','Phone');
				break;
		}

		return $duplicate_fields;
	}

Top ↑

Changelog Changelog

Changelog
Version Description
1.0.0 Introduced.