Sets the autoload value for multiple options in the database.
Description
This is a wrapper for wp_set_option_autoload_values(), which can be used to set different autoload values for each option at once.
Parameters
$optionsstring[]
List of option names. Expected to not be SQL-escaped.
$autoloadbool
Autoload value to control whether to load the options when WordPress starts up. For backward compatibility 'yes' and 'no' are also accepted, though using these values is deprecated.
Return
array
Associative array of all provided $options as keys and boolean values for whether their autoload value was updated.
Signature, return type and hooks compared across 5 parsed releases.
6.7.0
The autoload values 'yes' and 'no' are deprecated.from the docblock
6.4.0
Introduced.from the docblock
About this page
Parsed data
Generated from the wordpress-develop 6.9.7 tag, from src/wp-includes/option.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
Corrections
Something wrong on this page? Report it and it gets fixed in the next regeneration.