protected function removeValidationsByConditionalLogic($postmeta, $postTypeModel, $collection)
    {
		$allKeys = $this->getValidationsKeys($postTypeModel);

		foreach($allKeys as $key => $customField){

			if(array_key_exists($key, $postmeta)){
				$postmeta[$key] = true;
			}

			$display = $this->validateValueForLogic($customField, $postTypeModel, $collection);

			if($display === false){
				$postmeta[$key] = false;
			} else {
				$postmeta[$key] = true;
			}
		}

		return $postmeta;
    }
protected function removeValidationsByConditionalLogic($postmeta, $postTypeModel, $collection)
    {
		$allKeys = $this->getValidationsKeys($postTypeModel);

		foreach($allKeys as $key => $customField){

			if(array_key_exists($key, $postmeta)){
				$postmeta[$key] = true;
			}

			$display = $this->validateValueForLogic($customField, $postTypeModel, $collection);

			if($display === false){
				$postmeta[$key] = false;
			} else {
				$postmeta[$key] = true;
			}
		}

		return $postmeta;
    }
protected function removeValidationsByConditionalLogic ( $ postmeta , $ postTypeModel , $ collection ) { $ allKeys = $ this -> getValidationsKeys ( $ postTypeModel ) ; foreach ( $ allKeys as $ key => $ customField ) { if ( array_key_exists ( $ key , $ postmeta ) ) { $ postmeta [ $ key ] = true ; } $ display = $ this -> validateValueForLogic ( $ customField , $ postTypeModel , $ collection ) ; if ( $ display === false ) { $ postmeta [ $ key ] = false ; } else { $ postmeta [ $ key ] = true ; } } return $ postmeta ; }
Returning false values by array keys of the items which we need to exclude out of the validation array
Returning false values by array keys of the items which we need to exclude out of the validation array