Core Function
View Source on Trac ↗ wp_set_options_autoload()
wp_set_options_autoload( array $options, mixed $autoload ) Sets the autoload value for multiple options in the database.
Parameters 2 required
| Name / Type | Description |
|---|---|
| $options string[] | List of option names. Expected to not be SQL-escaped. Required |
| 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 deprecated. Required |
Return Value
(array)
array Associative array of all provided $options as keys and boolean values for whether their autoload value
was updated.
Function Information
Since Version
6.4.0
Source File
wp-includes/option.php
Advertisement