Skip to content

Add action hooks to Runtime_Environment_Setup#1290

Draft
ernilambar wants to merge 1 commit intotrunkfrom
1269-new-hooks
Draft

Add action hooks to Runtime_Environment_Setup#1290
ernilambar wants to merge 1 commit intotrunkfrom
1269-new-hooks

Conversation

@ernilambar
Copy link
Copy Markdown
Member

Closes #1269

Adds four do_action() hooks to Runtime_Environment_Setup so integrations can observe or react to the isolated DB / object-cache boundary without patching core logic.

Description

Hook Fires
wp_plugin_check_before_runtime_setup Before set_up() mutates state
wp_plugin_check_after_runtime_setup After set_up() completes (including early-exit path)
wp_plugin_check_before_runtime_cleanup Before clean_up() mutates state
wp_plugin_check_after_runtime_cleanup After clean_up() completes (including both early-exit paths)

Each hook receives a single array $context argument with one key: early_exit (bool) — true when the method returned before completing all steps.

Changes

  • includes/Checker/Runtime_Environment_Setup.phpdo_action() calls added.
  • tests/phpunit/tests/Checker/Runtime_Environment_Setup_Tests.php — new test methods.

AI Usage Disclosure

  • This PR was created without the help of AI tools
  • This PR includes AI-assisted code or content

Used:

  • Claude

@ernilambar ernilambar force-pushed the 1269-new-hooks branch 2 times, most recently from 0190a65 to 1718fd3 Compare May 4, 2026 06:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Action hooks for runtime environment setup / teardown

1 participant