rep__suburb_search_filter_detail()

This function  is used to retrieve a specific detail for a suburb search filter based on the provided $detail parameter.

Namespace

REP_Malcolm

Parameters

$detail

string

Suburb search filter detail to get.

$default

string

Default value to return.

Return

string

Suburb search filter detail.

Source

File: \includes\rep-helper-functions.php

function rep__suburb_search_filter_detail($detail, $default=""){

    $field_group = lp__get_field_value(REP__PREFIX.'_suburb_search_form','option');

    $data = lp__array_key_value( "{$detail}", $field_group );

    return $data ? $data : $default;

}