delete_site_option()WP 2.8.0

Removes a option by name for the current network.

Хуков нет.

Возвращает

true|false. True if the option was deleted, false otherwise.

Использование

delete_site_option( $option );
$option(строка) (обязательный)
Name of the option to delete. Expected to not be SQL-escaped.

Заметки

Список изменений

С версии 2.8.0 Введена.
С версии 4.4.0 Modified into wrapper for delete_network_option()

Код delete_site_option() WP 6.1.1

function delete_site_option( $option ) {
	return delete_network_option( null, $option );
}