Core Function
View Source on Trac ↗ wp_set_option_autoload()
wp_set_option_autoload( mixed $option, mixed $autoload ) Sets the autoload value for an option in the database.
Parameters 2 required
| Name / Type | Description |
|---|---|
| $option string | Name of the option. Expected to not be SQL-escaped. Required |
| bool | $autoload Autoload value to control whether to load the option when WordPress starts up. For backward compatibility 'yes' and 'no' are also accepted, though using these values is deprecated. Required |
Return Value
(bool)
True if the autoload value was modified, false otherwise.
Function Information
Since Version
6.4.0
Source File
wp-includes/option.php
Advertisement