wpseek.com
WordPress开发者和主题制作者的搜索引擎



_wp_secrets_delete › WordPress Function

Since7.2.0
已弃用n/a
› _wp_secrets_delete ( $name, $network )
访问:
  • private
参数: (2)
  • (string) $name The secret's name.
    Required: Yes
  • (bool) $network Whether this is a network-scope secret.
    Required: Yes
返回:
  • (true|WP_Error)
定义在:
文档:

Shared implementation behind wp_delete_secret() and wp_delete_network_secret().



源码

function _wp_secrets_delete( string $name, bool $network ) {
	return _wp_secrets_get_provider()->delete( $name, $network );
}