Filters all options before caching them.
Parameters
$alloptions
array- Array with all options.
Source
$alloptions = apply_filters( 'pre_cache_alloptions', $alloptions );
Changelog
Version | Description |
---|---|
4.9.0 | Introduced. |
Filters all options before caching them.
$alloptions
array$alloptions = apply_filters( 'pre_cache_alloptions', $alloptions );
Version | Description |
---|---|
4.9.0 | Introduced. |
You must log in before being able to contribute a note or feedback.
Optimize alloptions: remove option if size more than 1MB.
We can not use this hook in themes and plugins as it is fired before themes and plugins are loaded.