wp_set_options_autoload


wp_set_options_autoload ( $options, $autoload )

Parameters:
  • (string[]) options List of option names. Expected to not be SQL-escaped.
  • (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.
See:
Returns:
  • (array) Associative array of all provided $options as keys and boolean values for whether their autoload value was updated.
Defined at:
Change Log:
  • 6: .

Description

Sets the autoload value for multiple options in the database.This is a wrapper for {@see}, which can be used to set different autoload values for each option at once.

Related Functions

wp_set_option_autoload, wp_set_option_autoload_values, wp_determine_option_autoload_value, wp_get_post_autosave, wp_set_post_lock

Top Google Results

User discussions

wpseek mobile