GH#743: wire wu_settings_transactional_email hook to Amazon SES provider#744
Conversation
PR #724 added the do_action('wu_settings_transactional_email') call to class-settings.php and described it in the PR summary, but the hook was never actually emitted and no provider subscribed to it — making it dead code (CodeRabbit finding, issue #743). - Add do_action('wu_settings_transactional_email') in class-settings.php after the Transactional Email Delivery header/note fields - Subscribe Amazon_SES_Transactional_Email::register_transactional_email_settings() to the hook so the active SES region is shown in the Emails settings tab - Add tests for the new hook subscription and settings callback
|
Warning Rate limit exceeded
Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 10 minutes and 23 seconds. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (3)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
What: Wires the dead Issue: Closes #743 (CodeRabbit finding from PR #724 review — hook was described but never emitted, and no provider subscribed to it) Files changed: 3 files, 68 insertions
Testing: PHP syntax clean; tests added for hook subscription and callback execution. Risk: Low (settings UI only). Key decisions: Callback shows active SES region as a |
|
What: Wires the dead Issue: Closes #743 (CodeRabbit finding from PR #724 review — hook was described but never emitted, and no provider subscribed to it) Files changed: 3 files, 68 insertions
Testing: PHP syntax clean; tests added for hook subscription and callback execution. Risk: Low (settings UI only). Key decisions: Callback shows active SES region as a Merged via PR #744 to main.
|
🔨 Build Complete - Ready for Testing!📦 Download Build Artifact (Recommended)Download the zip build, upload to WordPress and test:
🌐 Test in WordPress Playground (Very Experimental)Click the link below to instantly test this PR in your browser - no installation needed! Login credentials: |
|
Performance Test Results Performance test results for 7e273cd are in 🛎️! Note: the numbers in parentheses show the difference to the previous (baseline) test run. Differences below 2% or 0.5 in absolute values are not shown. URL:
|
Summary
do_action('wu_settings_transactional_email')call toinc/class-settings.phpafter the Transactional Email Delivery header/note fieldsAmazon_SES_Transactional_Emailto the hook viaregister_transactional_email_settings(), which displays the active SES region in the Emails settings tabProblem
PR #724 described adding a
wu_settings_transactional_emailaction hook in the Emails settings section for addon developers, but thedo_action()call was never actually emitted inclass-settings.php. Additionally, no provider subscribed to the hook, making it dead code. CodeRabbit flagged this in the PR #724 review (issue #743).Changes
inc/class-settings.php— emitdo_action('wu_settings_transactional_email')with PHPDoc after the transactional email fieldsinc/integrations/providers/amazon-ses/class-amazon-ses-transactional-email.php— subscribe to the hook inregister_hooks()and implementregister_transactional_email_settings()callbacktests/WP_Ultimo/Integrations/Providers/Amazon_SES/Amazon_SES_Transactional_Email_Test.php— add tests for hook subscription and settings callbackRuntime Testing
Risk level: Low — settings UI field registration, no payment/auth/data paths affected.
Verification:
self-assessed— PHP syntax clean on all modified files; no runtime environment available.Closes #743
aidevops.sh v3.5.784 plugin for OpenCode v1.3.0 with claude-sonnet-4-6