Property | Type | Description | |
---|---|---|---|
$address | string | Current address. | |
$default_lat | float | Default latitude. | |
$default_lng | float | Default longitude. | |
$default_zoom | integer | Default zoom. | |
$lat | float | string | Current latitude. | |
$lazyload | boolean | Whether to lazy load this field. | |
$lng | float | string | Current longitude. | |
$zoom | integer | Current zoom. |
Method | Description | |
---|---|---|
admin_enqueue_scripts ( ) | Enqueue scripts in the administration | |
load ( ) | Load data from the datastore. | |
save ( ) | Save data to the datastore. | |
set_position ( string $lat, string $lng, integer $zoom ) | Set the coords and zoom of this field. | |
set_value_from_input ( array $input = null ) | Load the field value from an input array based on it's name | |
template ( ) | Underscore template of this field. | |
to_json ( boolean $load ) : array | Returns an array that holds the field data, suitable for JSON representation. |
public static admin_enqueue_scripts ( ) |
public set_value_from_input ( array $input = null ) | ||
$input | array | (optional) Array of field names and values. Defaults to $_POST |
protected bool $lazyload | ||
return | boolean |