Trigger on Attachment Count

Runs when WordPress updates attachment metadata. Use it to react to metadata processing, but note that the hook is also part of image/file processing.

What it means: Runs when WordPress updates attachment metadata. Use it to react to metadata processing, but note that the hook is also part of image/file processing.

Screenshot to add: [Workflow editor Attachment Count trigger configuration]

WordPress hook

wp_update_attachment_metadata

When to use this trigger

  • Choose this event when your workflow should start at the stage described above, rather than relying on a similarly named event that runs earlier or later.
  • After selecting the trigger, inspect the available trigger data in the editor and map only the values needed by later actions.
  • Test the exact scenario on a staging site or with a low-risk record before enabling actions that send messages, change permissions, or modify data.

Important notes

This trigger is registered from the WordPress hook catalog in the plugin source. WordPress hooks can fire during setup, before a change is complete, or multiple times during one user action. Confirm the actual firing point and available payload in your environment before relying on it for business-critical automation.