skip to Main Content
< All Articles

Different Area Unit as per the Property Type

You can use the filter rem_get_option_properties_area_unit for custom area units per the property type, purpose, or other field.

Add code to your child theme’s functions.php file or via a plugin that allows custom functions to be added, such as the Code snippets plugin. Avoid adding custom code directly to your parent theme’s functions.php file as this will be wiped entirely when you update the theme.

This code will display Perches if the property type is House and the selected unit for all the other property types.

add_filter('rem_get_option_properties_area_unit', 'custom_area_unit_per_type', 100, 2);

function custom_area_unit_per_type($value, $default){
    global $post;
    if(is_object($post) && $post->ID){
        $type = get_post_meta($post->ID, 'rem_property_type', true);
        if($type == 'House'){
            return 'Perches';
    return $value;
Quick Navigation
Back To Top