AI Agent Workflows 0.1.4 has 7 actions and 3 filters, read directly from its source code on Nov 19, 2026. The list updates automatically when a new version is released.
How to use these hooks
Actions let you run your own code at a specific moment. Filters let you change a value before the plugin uses it. Put your code in a child theme's functions.php or a code-snippets plugin, never in the plugin's own files, because updates overwrite them.
// Run your own code when AI Agent Workflows fires an action
add_action( 'dragaiw/loaded', function( $container ) {
// Your code runs here.
}, 10, 1 );
// Change a value AI Agent Workflows is about to use
add_filter( 'dragaiw_agent_max_iterations', function( $max, $config ) {
// Change $max here.
return $max;
}, 10, 2 );Parts of a name in {braces} are filled in at runtime (for example a post type or field ID). Choose Example on any hook for a ready-to-edit snippet.
All hooks
-
/** * Filters the AI Agent max tool-loop iterations (capped). */ apply_filters( 'dragaiw_agent_max_iterations', $max, $config ); -
/** * Seconds after a dragaiw create/update during which save_post is ignored for * that post (prevents immediate echo triggers). After this window, human edits * of the post may start workflows again. */ apply_filters( 'dragaiw_automated_post_grace_seconds', 45, $post_id ); -
/** * Filters WordPress list action result size (posts, media, comments, users). */ apply_filters( 'dragaiw_wp_list_limit', $limit ); -
/** * Fires once the plugin has finished loading and confirmed its environment * requirements are met. */ do_action( 'dragaiw/loaded', $this->container ); -
/** * Fires immediately after a single node executes, whether it succeeded or * failed. */ do_action( 'dragaiw/node/after_execute', $node, $result, $context ); -
/** * Fires immediately before a single node executes. */ do_action( 'dragaiw/node/before_execute', $node, $context ); -
/** * Fires once, letting core and third-party code register trigger and action * node types into the registry. */ do_action( 'dragaiw/nodes/register', $this->container->get( NodeTypeRegistry::class ) ); -
/** * Fires immediately before a workflow run starts executing nodes. The * `dragaiw_workflow_runs` row already exists with status `running`. See * docs/hooks-reference.md. */ do_action( 'dragaiw/workflow/before_run', $workflow_id, $trigger_payload ); -
do_action( 'dragaiw_admin_notices' ); -
do_action( 'dragaiw/workflow/after_run', $finished, $trigger_payload );
Generated from AI Agent Workflows's GPL-licensed source code. Hooks inside bundled third-party libraries are not listed.
Done for you
Rather have it built for you?
Tell us what should change and we’ll write and test the code using these hooks.
Custom hook snippet
from $49
A small, update-safe change built on the plugin’s own hooks.
- Code written against the plugin’s actions and filters
- Tested on a staging copy of your site
- Install instructions included
Typical turnaround: 2–3 business days
Choose thisPlugin customisation
from $149
New features or changed behaviour, without editing the plugin’s files.
- Built as a companion plugin, so updates never wipe it
- Exact quote before we start
- Tested on staging, then deployed
Typical turnaround: 3–7 business days
Choose thisNot sure which fits? Describe what you need and we’ll suggest the simplest option.
Can't find the right hook?
We can build the customisation for you. Describe what you need: