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:
@@ -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 */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user