A WordPress-centric search engine for devs and theme authors



delete_site_meta_by_key ›

Since5.1.0
Deprecatedn/a
delete_site_meta_by_key ( $meta_key )
Parameters:
  • (string) $meta_key Metadata key to search for when deleting.
    Required: Yes
Returns:
  • (bool) Whether the site meta key was deleted from the database.
Defined at:
Codex:

Deletes everything from site meta matching meta key.



Source

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