do_action( "delete_{$meta_type}_meta", string[] $meta_ids, int $object_id, string $meta_key, mixed $_meta_value )

Fires immediately before deleting metadata of a specific type.


The dynamic portion of the hook name, $meta_type, refers to the meta object type (post, comment, term, user, or any other type with an associated meta table).

Possible hook names include:

  • delete_post_meta
  • delete_comment_meta
  • delete_term_meta
  • delete_user_meta

Top ↑



(string[]) An array of metadata entry IDs to delete.


(int) ID of the object metadata is for.


(string) Metadata key.


(mixed) Metadata value.

Top ↑


File: wp-includes/meta.php

View on Trac

Top ↑


Version Description
3.1.0 Introduced.

Top ↑

User Contributed Notes

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