Methods

overrideEnableOptionsAutoload()

overrideEnableOptionsAutoload()

Initially add PRO-only options.

overrideRegister()

overrideRegister()

Register PRO-only options.

probablyUpdateDatabase()

probablyUpdateDatabase()

If we need to update the location database (scheduled), let's do this.

updateDatabase()

updateDatabase(boolean  $force = false): true|\WP_Error

Update the IP database and persist to our own database.

Parameters

boolean $force

Skip isActive check and download immediate

Returns

true|\WP_Error

clearDatabase()

clearDatabase()

Completely clear all database tables.

isActive()

isActive(): boolean

Check if compatibility is enabled.

Returns

boolean

getCountries()

getCountries(): array<mixed,string>

Get the list of countries where the banner should be shown (ISO 3166-1 alpha2).

Returns

array<mixed,string>

getType()

getType(): string

Get the type for the Country Bypass. Can be `all` or `essentials` (see class constants).

Returns

string

getDatabaseDownloadTime()

getDatabaseDownloadTime(): string|null

Check when the database got downloaded at latest.

Returns

string|null