There was a time when I needed to create a WordPress attachment programmatically. One of the functions to use in that process isĀ wp_update_attachment_metadata()
. However, the return values from this function are not always what you might expect. Here’s a look at the source code to get a certain answer: a post in the a series that I’ll call “Diving into spaghetti”. Continue reading