Skip to content
Benjamin Pick edited this page May 14, 2018 · 12 revisions

Additional to the Maxmind properties, this wordpress plugin adds some properties:

$record->isEmpty

(since 2.0.0) TRUE if the record does not contain any data. This can happen because not every IP has related information.

$record->extra->cached

(since 2.4.0) 0 if not cached. A unix timestamp if cached (contains the time when it was cached)

$record->extra->source

(since 2.4.0) Source that this record is coming from.

$record->extra->error

(since 2.4.0)

Error message of this lookup, if any. In error case $record->isEmpty is TRUE.

Clone this wiki locally