delete_postmeta

delete_postmeta

Hook Type: action

See hook in core

Displaying hooks found in version: wordpress-6.0.1

do_action('delete_postmeta') is found 1 times:

  • /wp-includes/meta.php line 487
    		 * @since 2.9.0
    		 *
    		 * @param string[] $meta_ids An array of 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 );