apply_filters( 'pre_wp_load_alloptions', array|null $alloptions, bool $force_cache )

Filters the array of alloptions before it is populated.


Description

Returning an array from the filter will effectively short circuit wp_load_alloptions(), returning that value instead.


Parameters

$alloptions

An array of alloptions. Default null.

$force_cache

Whether to force an update of the local cache from the persistent cache. Default false.


Source

File: wp-includes/option.php

View on GitHub


Changelog

Changelog
Version Description
6.2.0 Introduced.