apply_filters( 'tec_common_timed_option_pre_value', mixed|null $pre , string $key , mixed $default , bool $force )
Allows the filtering to short-circuit the whole fetch logic.
Contents
Parameters
- $pre
-
(mixed|null) If anything diff than null it will short-circuit.
- $key
-
(string) Key for the option we are trying to get.
- $default
-
(mixed) Default value when the option is either expired or not-set.
- $force
-
(bool) If we should expire cache and fetch from the database.
Source
Changelog
Version | Description |
---|---|
5.0.6 | Introduced. |