delete_site_option()

最后更新于:2021-11-26 01:00:00

delete_site_option( string$option)

Removes a option by name for the current network.

参数

$option

(string) (Required) Name of the option to delete. Expected to not be SQL-escaped.

响应

(bool) True if the option was deleted, false otherwise.

源文件

文件: gc-includes/option.php

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