Function Reference: geodir_post_location_where
Summary
Filters the where clause.
Package
GeoDirectory_Location_Manager
Change Log
Since: 1.0.0
Source File
geodir_post_location_where() is located in geodir_location_manager/geodir_location_hooks_actions.php [Line: 1412]
Source Code
function geodir_post_location_where()
{
global $snear;
if( ( is_search() && $_REQUEST['geodir_search'] ) )
{
add_filter('posts_where', 'searching_filter_location_where', 2);
if($snear!='')
add_filter('posts_where', 'searching_filter_location_where', 2);
}
if( !geodir_is_page('detail') )
add_filter('posts_where', 'geodir_default_location_where', 2);/**/
}