private function set_defaults() {

		$args = geot_settings();

		$this->opts = wp_parse_args( $args, [
			'license'            => '',
			'debug_mode'         => false,
			// similar to disable sessions but also invalidates cookies
			'cache_mode'         => false,
			// php sessions
			'bots_country'       => '',
			// a default country to return if a bot is detected
			'api_secret'         => '',
			// a default country to return if a bot is detected
			'cookie_name'        => 'geot_country',
			// cookie_name to store country iso code
			'maxmind'            => 0,
			// check if maxmind is enabled
			'maxmind_db'         => maxmind_db(),
			// path to db
			'ip2location'        => 0,
			// check if ip2location is enabled
			'ip2location_db'     => ip2location_db(),
			// path to db
			'ip2location_method' => apply_filters( 'geot/ip2location_method', '100001' ),
			// wheter we use io disk or memory for lookup
			'wpengine'           => 0,
			'kinsta'             => 0,
		] );
	}
private function set_defaults() {

		$args = geot_settings();

		$this->opts = wp_parse_args( $args, [
			'license'            => '',
			'debug_mode'         => false,
			// similar to disable sessions but also invalidates cookies
			'cache_mode'         => false,
			// php sessions
			'bots_country'       => '',
			// a default country to return if a bot is detected
			'api_secret'         => '',
			// a default country to return if a bot is detected
			'cookie_name'        => 'geot_country',
			// cookie_name to store country iso code
			'maxmind'            => 0,
			// check if maxmind is enabled
			'maxmind_db'         => maxmind_db(),
			// path to db
			'ip2location'        => 0,
			// check if ip2location is enabled
			'ip2location_db'     => ip2location_db(),
			// path to db
			'ip2location_method' => apply_filters( 'geot/ip2location_method', '100001' ),
			// wheter we use io disk or memory for lookup
			'wpengine'           => 0,
			'kinsta'             => 0,
		] );
	}
private function set_defaults ( ) { $ args = geot_settings ( ) ; $ this -> opts = wp_parse_args ( $ args , [ 'license' => '' , 'debug_mode' => false , // similar to disable sessions but also invalidates cookies 'cache_mode' => false , // php sessions 'bots_country' => '' , // a default country to return if a bot is detected 'api_secret' => '' , // a default country to return if a bot is detected 'cookie_name' => 'geot_country' , // cookie_name to store country iso code 'maxmind' => 0 , // check if maxmind is enabled 'maxmind_db' => maxmind_db ( ) , // path to db 'ip2location' => 0 , // check if ip2location is enabled 'ip2location_db' => ip2location_db ( ) , // path to db 'ip2location_method' => apply_filters ( 'geot/ip2location_method' , '100001' ) , // wheter we use io disk or memory for lookup 'wpengine' => 0 , 'kinsta' => 0 , ] ) ; }
Set some default options for the class
Set some default options for the class