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.
See also
Parameters
$options
string[]required- List of option names. Expected to not be SQL-escaped.
$autoload
boolrequired- 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.
Source
* @see wp_set_option_autoload_values()
*
* @param string[] $options List of option names. Expected to not be SQL-escaped.
* @param bool $autoload 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
User Contributed Notes
You must log in before being able to contribute a note or feedback.