# wp-map-block/2.0.2/includes/Installer.php

WP Map Block – Google Maps, OpenStreetMap, Mapbox, Store &amp; Shop Locator, Directory, Listings &amp; Filters, version 2.0.2. 21 lines.

- Page: https://pluginprobe.com/plugins/wp-map-block/2.0.2/code/includes/Installer.php
- Raw: https://pluginprobe.com/plugins/wp-map-block/2.0.2/raw/includes/Installer.php
- Modified: 2025-05-25T14:00:30+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/wp-map-block/2.0.2/code/includes/Installer.php#L10-L20`.

```php
<?php
namespace WPMapBlock;

class Installer
{
    public static function init()
    {
        $self = new self();
        $self->set_option();
    }
    public function set_option()
    {
        if (!get_option('wp_map_block_version')) {
            add_option('wp_map_block_version', WPMAPBLOCK_VERSION);
        }
        if (!get_option('wp_map_block_first_install_time')) {
            add_option('wp_map_block_first_install_time', time() + (get_option('gmt_offset') * HOUR_IN_SECONDS));
        }
    }
}

```
