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



delete_site_meta_by_key ›

Since5.1.0
已弃用n/a
delete_site_meta_by_key ( $meta_key )
参数:
  • (string) $meta_key Metadata key to search for when deleting.
    Required: Yes
返回:
  • (bool) Whether the site meta key was deleted from the database.
定义在:
文档:

Deletes everything from site meta matching meta key.



源码

function delete_site_meta_by_key( $meta_key ) {
	return delete_metadata( 'blog', null, $meta_key, '', true );
}