WPDev.one
Core Function
View Source on Trac ↗

wp_set_option_autoload_values()

wp_set_option_autoload_values( array $options )

Sets the autoload values for multiple options in the database.

Parameters 1 required

Name / Type Description
array

$options Associative array of option names and their autoload values to set. The option names are expected to not be SQL-escaped. The autoload values should be boolean values. 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