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> <li>delete_termmeta</li> <li>delete_usermeta</li> </ul>
1063*-`delete_usermeta`1064*1065* @since 3.4.01066*1067* @param int$meta_idID of the metadata entry to delete.1068*/1069do_action("delete_{$meta_type}meta",$meta_id);1070}10711072// Run the query, will return true if deleted, false otherwise.1073$result=(bool)$wpdb->delete($table,array($id_column=>$meta_id));10741075// Clear the caches.
History
Introduced in 3.4.0. Unchanged from 6.7.7 through 7.1.0.