epl_property_common_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_common_features_list
Features handled by this filter
$common_features = array( 'property_toilet', 'property_ensuite', 'property_pet_friendly', 'property_garage', 'property_carport', 'property_open_spaces', 'property_com_parking_comments', 'property_com_car_spaces', );
Add additional custom fields to the list
This filter allows you to add your custom fields to the features list output.
Once you have added your new custom field eg: property_my_new_custom_field you can add it to the epl_property_common_features_list filter
function my_epl_property_common_features_list( $array ) {
$array[] = 'property_my_new_custom_field'; //whatever your new field name is
return $array;
}
add_filter( 'epl_property_common_features_list' , 'my_epl_property_common_features_list' );
Replace features displayed
You can replace the entire list of common features items using this additional filter:
function my_epl_property_common_features_list( $array ) {
$new_array = $array; // Original items in array
$new_array = array(
'property_toilet',
'property_garage',
'property_carport',
);
return $new_array;
}
add_filter( 'epl_property_common_features_list' , 'my_epl_property_common_features_list' );
Remove a specific feature
You can remove a specific feature from the entire list of common features items using this additional filter:
function my_remove_epl_property_common_features_list( $array ) {
if( isset($array['property_garage']) )
unset($array['property_garage']);
return $array;
}
add_filter( 'epl_property_common_features_list' , 'my_remove_epl_property_common_features_list' );