wphooks.info - delete_postmeta

delete_postmeta

(trunk - 5.0-alpha-42732)

The hook occurs in the following file:

wp-includes/meta.php:
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
	// Old-style action.
	if ( 'post' == $meta_type ) {
		/**
		 * Fires immediately before deleting metadata for a post.
		 *
		 * @since 2.9.0
		 *
		 * @param array $meta_ids An array of post metadata entry IDs to delete.
		 */
		do_action( 'delete_postmeta', $meta_ids );
	}

	$query = "DELETE FROM $table WHERE $id_column IN( " . implode( ',', $meta_ids ) . ' )';

	$count = $wpdb->query( $query );

	if ( ! $count ) {
		return false;
	}