epl_property_additional_features_list

The easiest way to add additional features to a listing is with the Features taxonomy which works just like post tags.

epl_property_additional_features_list

Features handled by this filter

Note: This filter only supports the checkbox_single custom field type.

$additional_features 	= array (
	'property_remote_garage',
	'property_secure_parking',
	'property_study',
	'property_dishwasher',
	'property_built_in_robes',
	'property_gym',
	'property_workshop',
	'property_rumpus_room',
	'property_floor_boards',
	'property_broadband',
	'property_pay_tv',
	'property_vacuum_system',
	'property_intercom',
	'property_spa',
	'property_tennis_court',
	'property_balcony',
	'property_deck',
	'property_courtyard',
	'property_outdoor_entertaining',
	'property_shed',
	'property_open_fire_place',
	'property_ducted_heating',
	'property_ducted_cooling',
	'property_split_system_heating',
	'property_hydronic_heating',
	'property_split_system_aircon',
	'property_gas_heating',
	'property_reverse_cycle_aircon',
	'property_evaporative_cooling',
	'property_land_fully_fenced'	
);

Add additional custom checkbox_single fields to the list

This filter allows you to add your own checkbox_single type custom fields to the features list output.

This will then output your new fields on your listing.

Add one field to the output

Once you have added your new custom field eg: property_my_new_custom_checkbox_field you can add it to the epl_property_additional_features_list filter

function my_epl_property_additional_features_list( $array ) {
	$array[] = 'property_custom_feature_1'; //whatever your new field name is
	return $array;
}
add_filter( 'epl_property_additional_features_list' , 'my_epl_property_additional_features_list' );

Replace features displayed

You can replace the entire list of additional features items using this additional filter:

function my_list_epl_property_additional_features_list( $array ) {
	$new_array = $array; // Original items in array

	$new_array = array(
		'property_custom_feature_1',
		'property_custom_feature_2',
		'property_custom_feature_3',
		'property_custom_feature_4',
	);
	return $new_array;
}
add_filter( 'epl_property_additional_features_list' , 'my_list_epl_property_additional_features_list' );

Remove a specific feature

You can remove a specific feature from the entire list of additional features items using this additional filter:

function my_remove_item_epl_property_additional_features_list( $array ) {
	if( isset($array['property_rumpus_room']) )
		unset($array['property_rumpus_room']); 
	return $array;
}
add_filter( 'epl_property_additional_features_list' , 'my_remove_item_epl_property_additional_features_list' );