delete_site_meta_by_key( string $meta_key )

Deletes everything from site meta matching meta key.

Description Description

Parameters Parameters


(string) (Required) Metadata key to search for when deleting.

Top ↑

Return Return

(bool) Whether the site meta key was deleted from the database.

Top ↑

Source Source

File: wp-includes/ms-site.php

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

Top ↑

Changelog Changelog

Version Description
5.1.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.