apply_filters( 'pre_cache_alloptions', array $alloptions )
Filters all options before caching them.
Parameters
-
$alloptions
array -
Array with all options.
Source
File: wp-includes/option.php
.
View all references
$alloptions = apply_filters( 'pre_cache_alloptions', $alloptions );
Changelog
Version | Description |
---|---|
4.9.0 | Introduced. |
User Contributed Notes
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.