Function Reference: geodir_location_set_search_near_text

Summary

Set search near text.

Package

GeoDirectory_Location_Manager

Parameters

$near
(string) (required) The current near value.

Default: None
$default_near_text
(string) (required) The default near value.

Default: None

Return Values

(string)
  • Filtered near value.

Change Log

Since: 1.0.0

Source File

geodir_location_set_search_near_text() is located in geodir_location_manager/geodir_location_hooks_actions.php [Line: 3842]

Source Code

function geodir_location_set_search_near_text( $near, $default_near_text = '' ) {
    	if ( trim( $near ) == '1' ) {
        		$near = trim( $default_near_text ) == '1' ? '' : $default_near_text;
        	}

	return $near;
}