Sets the autoload value for multiple options in the database.
This is a wrapper for wp_set_option_autoload_values(), which can be used to set different autoload values for each option at once.
$optionsstring[]required
$autoloadboolrequired
'yes' and 'no' are also accepted, though using these values is deprecated.function wp_set_options_autoload( array $options, $autoload ) {
return wp_set_option_autoload_values(
array_fill_keys( $options, $autoload )
);
}
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/wp_set_options_autoload