• …can’t find if there are any hooks for the plugin. I have a custom plugin that automates feeds coming in, and the imported posts occasionally have image attachments. Would be nice to add an action to my plugin to fire off tinypng compression when there is an image import.

    Any way to do this?

Viewing 1 replies (of 1 total)
  • Plugin Author TinyPNG

    (@tinypng)

    Thanks for your review!

    Actually, at this moment our plugin doesn’t define any hooks. We use the WordPress wp_generate_attachment_metadata hook ourselves to detect if an image is being uploaded (and the associated metadata). Perhaps that is an option for you as well?

Viewing 1 replies (of 1 total)
  • The topic ‘Works well but…’ is closed to new replies.