Un motore di ricerca WordPress per sviluppatori e autori di temi



delete_post_meta_by_key ›

Da2.3.0
Deprecaton/a
delete_post_meta_by_key ( $post_meta_key )
Parametri:
  • (string) $post_meta_key Key to search for when deleting.
    Richiesto:
Ritorna:
  • (bool) Whether the post meta key was deleted from the database.
Definito a:
Codex:

Deletes everything from post meta matching the given meta key.



Sorgenti

function delete_post_meta_by_key( $post_meta_key ) {
	return delete_metadata( 'post', null, $post_meta_key, '', true );
}