Uma área de pesquisa sobre o WordPress para devs e autores do tema



delete_site_meta_by_key ›

Desde5.1.0
Obsoleton/a
delete_site_meta_by_key ( $meta_key )
Parâmetros:
  • (string) $meta_key Metadata key to search for when deleting.
    Required: Yes
Retorna:
  • (bool) Whether the site meta key was deleted from the database.
Definido em:
Codex:

Deletes everything from site meta matching meta key.



Fonte

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