Archives

rem_lists_sorting_options

This filter returns the array of options to sort property listings from top bar.

Arguments

  1. Options [Array]

Example

The following code will add another option with the name Sort By Area in the sorting dropdown menu. Paste the following code inside the functions.php file of your theme/child theme.

 

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.

 

rem_search_properties_query_args

This filter is responsible for changing the search query before displaying the results.

Pasting following code in the functions.php file of the theme/child theme will sort the search results by Featured Properties. (Featured properties will display first).

 

 

rem_single_property_field_columns_frontend

This filter can be used to alter the number of columns of the field values on the Single Property Page.

Arguments

  1. Default CSS Classes [text]
  2. Field Name (Field Data Name) [text]
  3. Field [array]
  4. Property ID [integer]

Example

Suppose you want to change the Number of columns to 2, you will paste the following code in your theme’s functions.php file.

 

 

rem_fotorama_attrs

This filter is responsible for all the settings related to the Gallery Slider, on the Single Property Page. We’re using Fotorama library here.

Default settings that we’re using are defined below

Now suppose you want to add some more settings from Fotorama API, and with this, you also want to modify some of the default values. Let’s say the following settings you need

  • max-width => 1150
  • max-height => 100%
  • ratio => 16/9
  • min-width => 400
  • min-height => 300

You have to paste the following code inside functions.php file of your theme to achieve this

 

 

rem_property_settings_tabs

This filter is responsible for rendering the sections or tabs for property page. By default the following tabs are available

  1. Details
  2. Internal Structure
  3. Features
  4. Attachments
  5. Video
  6. Private Fields

You can add more tabs from Settings -> Single Property Page -> Property Settings Tabs.

But, what if you need to remove the default ones or want to modify the default ones? For this, you can use the filter rem_property_settings_tabs.

Pasting the following code inside the functions.php file of your theme will change the labels as following

  • Details => General Settings
  • Internal Structure => Interior
  • Features => Facilities
  • Attachments => Docs

and the following code will remove the Internal Structure tab.

 

Changing Order of Tabs

 

rem_agent_page_slider_style

This filter is responsible for the property listing style that displays in a slider, on the Agent Template.

Arguments

  1. Listing Style [integer]

Example

Suppose, you want to change this style to Style 6. You will use the following code inside your theme’s functions.php file.

 

rem_agent_page_slider_args

This filter can be used to modify the properties that display in a slider on Agent Template.

Arguments

  1. Query Args [Array]

Example

By default it renders 10 properties, suppose you want to display only 5, you can use the following code in the theme’s functions.php file.

 

rem_ribbon_text

This filter is responsible for rendering the text of the ribbon

Arguments

  1. Text to Display [string]
  2. Property ID [integer]

Example

Suppose you want to add a ribbon text Sold to those properties which have their Property Status set to Sold, paste the following code inside the functions.php file of your theme.