Fires immediately before deleting post or comment metadata of a specific type.
Description
The dynamic portion of the hook name, $meta_type, refers to the meta object type (post or comment). Possible hook names include: <ul> <li>delete_postmeta</li> <li>delete_commentmeta</li> </ul>
1083*-`delete_commentmeta`1084*1085* @since 3.4.01086*1087* @param int$meta_idID of the metadata entry to delete.1088*/1089do_action("delete_{$meta_type}meta",$meta_id);1090}10911092// Run the query, will return true if deleted, false otherwise.1093$result=(bool)$wpdb->delete($table,array($id_column=>$meta_id));10941095// Clear the caches.
History
Introduced in 3.4.0. Unchanged from 6.7.7 through 7.1.0.