• First, I started writing my own plugin. I wanted to add this “reference info” to “attachment-info”, but it’s impossible because it’s hardcoded into WP core (“wp_print_media_templates()”). I searched for some code/solution where I would learn how to add this information to “attachment-info” (instead of the edit form), and I found this plugin. Yes, this plugin adds this information to the edit form (“attachment_fields_to_edit” action), because it seems like in WP we don’t have any path to affect “attachment-info”.

    In my test cases, it is fast enough.

    I don’t understand why attachments don’t have a classic reference table with foreign keys in WP core. This plugin solves this bad/sad functionality in WP core.

    Thanks a lot, Konstantin!

Viewing 1 replies (of 1 total)
  • Thread Starter petersweater

    (@petersweater)

    “get_option(‘au_attachment_usage_found’)” isn’t nice. But yes, we can scale to big number before we reach the limits.

Viewing 1 replies (of 1 total)
  • The topic ‘Must-have plugin to solve the itchy problem with attachments.’ is closed to new replies.