<?php
if ( ! defined( 'ABSPATH' ) ) {
    exit;
}

class BLM_Activator {

    public static function activate() {
        if ( false === get_option( 'blm_business_data' ) ) {
            add_option( 'blm_business_data', array(
                'business_name' => get_bloginfo( 'name' ),
            ) );
        }

        if ( false === get_option( 'blm_connection_status' ) ) {
            add_option( 'blm_connection_status', array(
                'connected' => false,
                'key_hash'  => '',
            ) );
        }

        if ( false === get_option( 'blm_last_updated' ) ) {
            add_option( 'blm_last_updated', '' );
        }

        // Set transient for activation redirect.
        set_transient( 'blm_activation_redirect', true, 30 );
    }
}
