apply_filters( ‘wp_default_autoload_value’, bool|null $autoload, string $option, mixed $value )

In this article

Allows to determine the default autoload value for an option where no explicit value is passed.

Parameters

$autoloadbool|null
The default autoload value to set. Returning true will be set as 'auto-on' in the database, false will be set as 'auto-off', and null will be set as 'auto'.
$optionstring
The passed option name.
$valuemixed
The passed option value to be saved.

Source

$autoload = apply_filters( 'wp_default_autoload_value', null, $option, $value, $serialized_value );

Changelog

VersionDescription
6.6.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.