deleted_term_meta
Fires immediately after deleting metadata of a specific type.
This is one of the variants of the dynamic hook deleted_(meta_type)_meta
Usage
add_action( 'deleted_term_meta', 'wp_kama_deleted_term_meta_action', 10, 4 ); /** * Function for `deleted_term_meta` action-hook. * * @param string[] $meta_ids An array of metadata entry IDs to delete. * @param int $object_id ID of the object metadata is for. * @param string $meta_key Metadata key. * @param mixed $_meta_value Metadata value. * * @return void */ function wp_kama_deleted_term_meta_action( $meta_ids, $object_id, $meta_key, $_meta_value ){ // action... }
- $meta_ids(string[])
- An array of metadata entry IDs to delete.
- $object_id(int)
- ID of the object metadata is for.
- $meta_key(string)
- Metadata key.
- $_meta_value(mixed)
- Metadata value.
Changelog
Since 2.9.0 | Introduced. |
Where the hook is called
deleted_term_meta
wp-includes/meta.php 528
do_action( "deleted_{$meta_type}_meta", $meta_ids, $object_id, $meta_key, $_meta_value );
Where the hook is used in WordPress
wp-includes/default-filters.php 129
add_action( 'deleted_term_meta', 'wp_cache_set_terms_last_changed' );