wp_set_option_autoload
wp_set_option_autoload ( $option, $autoload )
Parameters:- (string) option Name of the option. Expected to not be SQL-escaped.
- (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.
See:Returns:- (bool) True if the autoload value was modified, false otherwise.
Defined at:Change Log: - Introduced in WordPress: 6.4.0
- Deprecated in WordPress: —
Description
Sets the autoload value for an option in the database.This is a wrapper for {@see}, which can be used to set the autoload value for
multiple options at once.