Is there any way to accomplish the following in WordPress with $wpdb->insert or
$wpdb->query($wpdb->prepare)):
INSERT into TABLE (column1, column2, column3)
VALUES
('value1', 'value2', 'value3'),
('otherval1', 'otherval2', 'otherval3'),
('anotherval1', 'anotherval2', 'anotherval3')
…etc
OK, I figured it out!
Setup arrays for Actual Values, and Placeholders
the initial Query:
Then loop through the the values you’re looking to add, and insert them in the appropriate arrays:
Then add these bits to the initial query: