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
| Version | Description |
|---|---|
| 6.6.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.