skip to Main Content
< All Articles
Print

rem_energy_efficiency_fields

This filter can be used to alter any data in the Energy Efficiency fields.

Arguments

  1. EE Fields [Array]

Example

The following code will replace the Energy Efficiency scale values  (A+, A, B, C, …)  with new ones (Efficient, Average, etc), paste the following code in your theme’s functions.php file.

add_filter( 'rem_energy_efficiency_fields', 'rem_new_energy_efficiency_scales', 10, 1 );

function rem_new_energy_efficiency_scales($ee_fields){
	$ee_fields[0]['options'] = array(
		'Very Efficient',
		'Efficient',
		'Better',
		'Good',
		'Average',
		'Inefficient',
		'Very inefficient',
	);
	return $ee_fields;
}

 

Quick Navigation
Back To Top