MP_Geo::__construct()

Geo constructor.

Contents


Source Source

File: mortgage-platform/Inc/MP_Geo.php

	public function __construct() {
		$api_key = get_option( MortgagePlatform::$prefix . 'leads' )['lead_geo'];

		if ( ! preg_match( '/^[0-9a-z]{64}$/', $api_key ) ) {
			throw exception( 'Invalid IPInfoDB API key.' );
		}

		$this->api_key = $api_key;
	}

Top ↑

Changelog Changelog

Changelog
Version Description
1.0.0 Introduced.