Function Reference: geodir_location_set_pin_disable

Summary

Filters the auto change address fields values when moving the map pin.

Package

GeoDirectory_Location_Manager

Parameters

$val
(bool) (required) Whether to change the country, state, city values in fields.

Default: None

Return Values

(string|bool)

    Change Log

    Since: 1.0.0

    Source File

    geodir_location_set_pin_disable() is located in geodir_location_manager/geodir_location_hooks_actions.php [Line: 3825]

    Source Code

    function geodir_location_set_pin_disable($val){
    if(geodir_is_page( 'add-listing' ) && get_option('location_set_pin_disable')){
        return '0';//return false
    }
        return $val;
    }