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:
  • 6: .

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.

Related Functions

wp_set_options_autoload, wp_set_option_autoload_values, wp_determine_option_autoload_value, is_user_option_local, wp_get_post_autosave

Top Google Results

User discussions

wpseek mobile