函数原型
delete_site_option( string $option ): bool
函数描述
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.
函数位置
File: wp-includes/option.php.
函数源码
function delete_site_option( $option ) {
return delete_network_option( null, $option );
}
源码链接
变更日志
| Version | Description |
|---|---|
| 4.4.0 | Modified into wrapper for delete_network_option() |
| 2.8.0 | Introduced. |

