fix(instanda): register the add-on on gform_loaded at the intended priority 5

The priority argument was passed to Guard::wrap() (which takes a single callable
and silently ignored it) instead of to add_action(), so the add-on registered at
the default priority 10 rather than 5. Move the 5 to add_action's third argument
so registration runs at the same early priority as Gravity Forms' own bundled
add-on bootstraps.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
2026-07-02 22:54:01 -06:00
co-authored by Claude Fable 5
parent 5d2e9cb7e5
commit d607badac1
@@ -122,7 +122,7 @@ function platform_blockers(): array {
require_once __DIR__ . '/includes/class-instanda-addon.php';
\GFAddOn::register(Instanda_AddOn::class);
}, 5));
}), 5);
/* ----------------------------------------------------------------- cron cleanup */