rem_property_price

This filter returns the formatted price for properties.

Arguments

  1. Formatted Price [HTML]
  2. Actual Price [integer]
  3. Arguments [array]

Example

Suppose you want to display a Price on Request text instead of the actual price for those properties having price 1, paste the following code in the functions.php file of the theme/child theme will do that.

add_filter('rem_property_price', 'change_price_text', 20, 3);

function change_price_text($return, $price, $args){

	if ($price == '1') {
		return 'Price on request';
	} else {
		return $return;
	}
	
}

 

Previous rem_search_properties_query_args
Next rem_lists_sorting_options