wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



wp_set_options_autoload › WordPress Function

Seit6.4.0
Veraltetn/v
wp_set_options_autoload ( $options, $autoload )
Parameter: (2)
  • (string[]) $options List of option names. Expected to not be SQL-escaped.
    Erforderlich: Ja
  • (string|bool) $autoload Autoload value to control whether to load the options when WordPress starts up. Accepts 'yes'|true to enable or 'no'|false to disable.
    Erforderlich: Ja
Siehe:
Gibt zurück:
  • (array) Associative array of all provided $options as keys and boolean values for whether their autoload value was updated.
Definiert in:
Codex:

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.


Quellcode

function wp_set_options_autoload( array $options, $autoload ) {
	return wp_set_option_autoload_values(
		array_fill_keys( $options, $autoload )
	);
}