Docs

evf_parse_relative_date_option( mixed $raw_value ): array

Parse a relative date option from the settings API into a standard format.

Parameters

$raw_valuemixedrequired
Value stored in DB.

Return

array Nicely formatted array with number and unit values.

Changelog

VersionDescription
1.2.0Introduced.