A WordPress-centric search engine for devs and theme authors

wp-includes/option.php › WordPress File

Option API

Function Short description
add_network_optionAdds a new network option.
add_optionAdds a new option.
add_site_optionAdds a new option for the current network.
delete_all_user_settingsDeletes the user settings of the current user.
delete_expired_transientsDeletes all expired transients.
delete_network_optionRemoves a network option by name.
delete_optionRemoves option by name. Prevents removal of protected WordPress options.
delete_site_optionRemoves a option by name for the current network.
delete_site_transientDeletes a site transient.
delete_transientDeletes a transient.
delete_user_settingDeletes user interface settings.
filter_default_optionFilters the default value for the option.
form_optionPrints option value after sanitizing for forms.
get_all_user_settingsRetrieves all user interface settings.
get_network_optionRetrieves a network's option value based on the option name.
get_optionRetrieves an option value based on an option name.
get_registered_settingsRetrieves an array of registered settings.
get_site_optionRetrieve an option value for the current network based on name of option.
get_site_transientRetrieves the value of a site transient.
get_transientRetrieves the value of a transient.
get_user_settingRetrieves user interface setting value based on setting name.
register_initial_settingsRegisters default settings available in WordPress.
register_settingRegisters a setting and its data.
set_site_transientSets/updates the value of a site transient.
set_transientSets/updates the value of a transient.
set_user_settingAdds or updates user interface setting.
unregister_settingUnregisters a setting.
update_network_optionUpdates the value of a network option that was already added.
update_optionUpdates the value of an option that was already added.
update_site_optionUpdates the value of an option that was already added for the current network.
wp_load_alloptionsLoads and caches all autoloaded options, if available or all options.
wp_load_core_site_optionsLoads and caches certain often requested site options if is_multisite() and a persistent cache is not being used.
wp_protect_special_optionProtects WordPress special option from being modified.
wp_set_all_user_settingsPrivate. Sets all user interface settings.
wp_user_settingsSaves and restores user interface settings stored in a cookie.