• Resolved Jaakko P?ntinen

    (@jpontinen)


    Hello.

    What are the actions in WordPress core that trigger your plugin’s image manipulation process?

    Thanks ??

    – JP

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Nabil Lemsieh

    (@nlemsieh)

    Hi @jpontinen

    The plugin is attached to this action wp_generate_attachment_metadata.

    It’s also attached to save_post when an image is added or attached to a product. Images that cannot be recognized upon upload are processed later in the background after they get attached.

    Let me know if you have any other questions.

    Best
    Nabil

    Thread Starter Jaakko P?ntinen

    (@jpontinen)

    Thank you, Nabil ??

    FYI, I need your plugin to work with BjornTech’s Zettle integration. The images the plugin uploads in the import process are not being handled by your plugin. Their dev is checking whether their import process triggers the action you described.

    Plugin Author Nabil Lemsieh

    (@nlemsieh)

    @jpontinen

    If the product images are not getting handled upon import, that’s likely because the plugin cannot determine whether the imported image is a product-image. In this case, the plugin will recheck the image when it’s attached to the product later and process it in the background, a notice will show up in the admin when it’s running.

    Alternatively, if you have control over the API, you can pass this variable _processable_image=1 to the import query to force the plugin to handle the image.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Which hooks does this plugin attach to?’ is closed to new replies.