{"id":923,"date":"2026-10-18T13:14:20","date_gmt":"2026-10-18T13:14:20","guid":{"rendered":"http:\/\/plugin-docs.com\/?post_type=doc&#038;p=923"},"modified":"2026-10-18T13:27:20","modified_gmt":"2026-10-18T13:27:20","slug":"trigger-workflows-post-revision-creation","status":"publish","type":"doc","link":"https:\/\/dragwyb.com\/docs\/trigger-workflows-post-revision-creation\/","title":{"rendered":"Trigger Workflows on Post Revision Creation"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">The <strong>Revision Creation<\/strong> trigger is available in the WordPress <strong>Post<\/strong> group in the AI Agent Workflows editor. It starts a workflow when WordPress fires the <code>wp_save_post_revision<\/code> hook. The exact timing depends on the event represented by that hook.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Screenshot to add: [Workflow editor showing the Revision Creation trigger and its configuration]<\/p>\n\n\n<h2 class=\"wp-block-heading\">When this trigger fires<\/h2>\n\n\n<p class=\"wp-block-paragraph\">This trigger maps to <code>wp_save_post_revision<\/code>, which runs when WordPress creates a revision. It is distinct from the regular post-save and status-change triggers.<\/p>\n\n\n<h2 class=\"wp-block-heading\">Data available to later nodes<\/h2>\n\n\n<p class=\"wp-block-paragraph\">For recognized post hooks, the plugin normalizes the event into fields such as <code>source<\/code>, <code>event<\/code>, <code>post_id<\/code>, <code>post_title<\/code>, <code>post_content<\/code>, <code>post_content_text<\/code>, <code>post_excerpt<\/code>, <code>post_status<\/code>, <code>post_type<\/code>, <code>post_name<\/code>, <code>post_author<\/code>, <code>post_date<\/code>, <code>post_modified<\/code>, and <code>post_parent<\/code> when the corresponding post data is available. Some hooks add event-specific values, such as old and new status or an update flag. Inspect a captured sample in the editor before relying on a particular field.<\/p>\n\n\n<h2 class=\"wp-block-heading\">Configure the trigger<\/h2>\n\n\n<ol class=\"wp-block-list\">\n\n<li>Open the workflow in the visual editor and open the node picker.<\/li>\n\n\n<li>Select <strong>WordPress<\/strong>, then the <strong>Post<\/strong> group, and add <strong>Revision Creation<\/strong>.<\/li>\n\n\n<li>This catalog entry does not expose the configurable <strong>Post Types<\/strong> filter. Review its captured data to confirm it matches your intended use.<\/li>\n\n\n<li>Save the workflow and test the relevant event on a test site or with non-critical content. Inspect the trigger sample before mapping values to later nodes.<\/li>\n\n<\/ol>\n\n\n<h2 class=\"wp-block-heading\">Source hook<\/h2>\n\n\n<p class=\"wp-block-paragraph\">Catalog hook: <code>wp_save_post_revision<\/code>. This reference describes the trigger registration in the supplied plugin source; it does not claim that a live event has been tested.<\/p>\n\n","protected":false},"excerpt":{"rendered":"<p>Understand the post revision trigger, its WordPress hook, and how to inspect captured data before connecting later workflow actions.<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":956,"menu_order":0,"template":"","class_list":["post-923","doc","type-doc","status-publish","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/dragwyb.com\/docs\/wp-json\/wp\/v2\/doc\/923","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dragwyb.com\/docs\/wp-json\/wp\/v2\/doc"}],"about":[{"href":"https:\/\/dragwyb.com\/docs\/wp-json\/wp\/v2\/types\/doc"}],"author":[{"embeddable":true,"href":"https:\/\/dragwyb.com\/docs\/wp-json\/wp\/v2\/users\/1"}],"version-history":[{"count":1,"href":"https:\/\/dragwyb.com\/docs\/wp-json\/wp\/v2\/doc\/923\/revisions"}],"predecessor-version":[{"id":974,"href":"https:\/\/dragwyb.com\/docs\/wp-json\/wp\/v2\/doc\/923\/revisions\/974"}],"up":[{"embeddable":true,"href":"https:\/\/dragwyb.com\/docs\/wp-json\/wp\/v2\/doc\/956"}],"wp:attachment":[{"href":"https:\/\/dragwyb.com\/docs\/wp-json\/wp\/v2\/media?parent=923"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}