function set_user_setting( $name,
$value ) { if ( headers_sent() ) { return false;
} $all_user_settings =
get_all_user_settings();
$all_user_settings[ $name ] =
$value;
return wp_set_all_user_settings( $all_user_settings );
}/**
* Deletes user interface settings.
*
* Deleting settings would reset them to the defaults.
*
* This function has to be used before any output has started as it calls `setcookie()`.
*
* @since 2.7.0
*
* @param string $names The name or array of names of the setting to be deleted.
* @return bool|null True if deleted successfully, false otherwise.
* Null if the current user is not a member of the site.
*/