Filter Reference: geodir_search_settings
Summary
Filter GD search Settings array.
Package
GeoDirectory
Change Log
Since: 1.0.0
Used by
geodirectory-admin/option-pages/general_settings_array.php: [Line: 223]
Source Code
$search_settings = apply_filters('geodir_search_settings', array( array('name' => __('Search', 'geodirectory'), 'type' => 'title', 'desc' => '', 'id' => 'search_settings'), array('name' => __('Search Settings', 'geodirectory'), 'type' => 'sectionstart', 'id' => 'search_settings'), array( 'name' => __('Limit squared distance area to X miles (helps improve search speed)', 'geodirectory'), 'desc' => __('Enter whole number only ex. 40 (Tokyo is largest city in the world @40 sq miles) LEAVE BLANK FOR NO DISTANCE LIMIT', 'geodirectory'), 'id' => 'geodir_search_dist', 'type' => 'text', 'css' => 'min-width:300px;', 'std' => '40' // Default value for the page title - changed in settings ), array( 'name' => __('Show search distances in miles or km', 'geodirectory'), 'desc' => __('Miles', 'geodirectory'), 'id' => 'geodir_search_dist_1', 'std' => 'miles', 'type' => 'radio', 'value' => 'miles', 'radiogroup' => 'start' ), array( 'name' => __('Show search distances in miles or km', 'geodirectory'), 'desc' => __('Kilometers', 'geodirectory'), 'id' => 'geodir_search_dist_1', 'std' => 'miles', 'type' => 'radio', 'value' => 'km', 'radiogroup' => 'end' ), array( 'name' => __('If distance is less than 0.01 show distance in meters or feet', 'geodirectory'), 'desc' => __('Meters', 'geodirectory'), 'id' => 'geodir_search_dist_2', 'std' => 'meters', 'type' => 'radio', 'value' => 'meters', 'radiogroup' => 'start' ), array( 'name' => __('If distance is less than 0.01 show distance in meters or feet', 'geodirectory'), 'desc' => __('Feet', 'geodirectory'), 'id' => 'geodir_search_dist_2', 'std' => 'meters', 'type' => 'radio', 'value' => 'feet', 'radiogroup' => 'end' ), array( 'name' => __('Add location specific text to (Near) search for Google', 'geodirectory'), 'desc' => __('This is usefull if your directory is limted to one location such as: New York or Australia (this setting should be blank if using default country, regions etc with multilocation addon as it will automatically add them)', 'geodirectory'), 'id' => 'geodir_search_near_addition', 'type' => 'text', 'css' => 'min-width:300px;', 'std' => '' ), array( 'name' => __('Individual word search limit', 'geodirectory'), 'desc' => __('With this option you can limit individual words being searched for, for example searching for `Jo Brown` would return results with words like `Jones`, you can exclude these types of small character words if you wish.', 'geodirectory'), 'id' => 'geodir_search_word_limit', 'css' => 'min-width:300px;', 'std' => 'gridview_onehalf', 'type' => 'select', 'class' => 'chosen_select', 'options' => array_unique(array( '0' => __('Disabled', 'geodirectory'), '1' => __('1 Character words excluded', 'geodirectory'), '2' => __('2 Character words and less excluded', 'geodirectory'), '3' => __('3 Character words and less excluded', 'geodirectory'), )) ), array('type' => 'sectionend', 'id' => 'search_settings'), )); //search_settings End