Skip to content

feat: opt into the Themeisle SDK Support Hub - #810

Merged
vytisbulkevicius merged 1 commit into
developmentfrom
feat/support-hub
Nov 16, 2026
Merged

vytisbulkevicius merged 1 commit into
developmentfrom
feat/support-hub

Conversation

@vytisbulkevicius

@vytisbulkevicius vytisbulkevicius commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

PPOM now opts into the Themeisle SDK Support Hub, as Feedzy (Codeinwp/feedzy-rss-feeds#1372), Otter (Codeinwp/otter-blocks#3177) and Neve (Codeinwp/neve#4688) did. Free users get a Help button on PPOM's screens to message our support team, and the readme no longer points them only to the forum.

What changed

  • Support Hub: PPOM passes its metadata to the SDK. That is a Pro flag for a valid PPOM Pro license, and footer links to the documentation and the wordpress.org forum. The Help button shows on the PPOM Fields screens and on the PPOM Settings tab, which already report themselves to the SDK. The SDK's deactivation window replaces the old uninstall survey for the free plugin.

  • Pro flag: the flag reads PPOM Pro's stored license through \PPOM_Pro\get_license_status(), as Helpers already does. The SDK reads the metadata while it loads PPOM. At that time the product_ppom_license_status filter can still be missing, depending on load order.

  • Float widget: removed. The SDK turns the float widget off for every product that opts into the Support Hub, so its metadata and the images/help.svg logo were no longer used. The Help panel replaces its Documentation and support links. Its Upgrade link goes too, as in Feedzy.

  • readme.txt: the Support section now mentions the Help button next to the support forum.

  • SDK: codeinwp/themeisle-sdk now requires ^3.3.71. Releases 3.3.69 and 3.3.70 shipped without the SDK's built JS. The lock is already on 3.3.72, so only its content hash changes.

Note

PPOM has no Pro Slug header. Because of that, the SDK sends a licensed Pro site's messages with plan="pro" but without the price id, and with an empty license_status. Adding the header also makes the SDK Logger opt Pro sites into usage tracking by default. That is a separate decision, as it was for Otter.

QA

  1. Use PPOM without PPOM Pro. Go to WP Admin → WooCommerce → PPOM Fields.

    Expect: a Help button at the bottom right of the screen. The old round help widget is gone.

  2. Click Help.

    Expect: the Help panel opens with the message form. Its footer shows Documentation and Community Forum.

  3. Click Documentation, then Community Forum.

    Expect: the PPOM documentation and the PPOM forum on wordpress.org open in new tabs.

  4. Go to WP Admin → Posts.

    Expect: no Help button.

  5. Go to WP Admin → Plugins and click Deactivate under PPOM for WooCommerce.

    Expect: the Support Hub deactivation window opens, with the deactivation reasons.

  6. Activate PPOM Pro with a valid license. Open Help on the PPOM Fields screen and send a test message.

    Expect: the message reaches Help Scout tagged as Pro.

Review responses

  • PPOM Pro defines \PPOM_Pro\get_license_status before init: it does. In PPOM Pro, the function is declared at the top level of ppom.php in the PPOM_Pro namespace, so it exists as soon as WordPress loads the plugin file. PPOM Pro's own license gate calls it while that file loads. The SDK reads the metadata later, on init.
  • Help Scout delivery and the deactivation window: both are the SDK's own flows, unchanged by this PR. They are in QA steps 5 and 6.
  • The float-widget unit test errors on base instead of failing its assertion: on base, the removed float-widget callback calls an SDK helper the unit suite does not load, so the test stops before the assertion. At HEAD no callback is registered, and the test asserts the empty result.

Free users get a Help button on the PPOM screens to message the support
team; it replaces the SDK float widget. The readme support section now
mentions it next to the forum.
@pirate-bot

Copy link
Copy Markdown
Contributor

Tip

You can preview the changes in the Playground

Plugin build for 788df09 is ready 🛎️!

@pirate-bot

Copy link
Copy Markdown
Contributor

🌍 i18n String Review Report

📊 Summary

Category Count
➕ Added 1
➖ Removed 0
🔄 Changed 0
Total 1
➕ Added Strings (1) - Click to expand
String Location Words Suggested Match
Community Forum src/Core/Bootstrap/SdkCompa... 2 No close match
Total 2

@pirate-bot pirate-bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approved

The Support Hub metadata matches the SDK 3.3.72 contract, and the Help button renders on the promised PPOM screens only.

Validation details
  • Files reviewed: 8/8 changed files. The composer.lock hunk changes only the content hash.
  • The SDK builds the woocommerce_product_addon_support_hub_metadata filter name and reads is_pro and links, at tag v3.3.72.
  • On the sandbox site (PHP 8.3.36, WooCommerce 11.3.0), PPOM Fields and PPOM Settings show the Help launcher. Posts shows none cd /workspace/checks/C5 && wp() { :; }; set -o pipefail && timeout 280 node screens.js head3 2>&1 | tee head3-screens.js… (run R17, exit 0) cd /workspace/checks/C5 && L0=$(wc -l < /var/www/html/wp-content/debug.log); timeout 200 node screens.js head4 > head4-s… (run R18, exit 0). Base shows none cd /workspace/checks/C5 && L0=$(wc -l < /var/www/html/wp-content/debug.log); timeout 200 node screens.js base1 > base1-s… (run R20, exit 0).
  • The SDK applies the filter on init. A de_DE locale logged no early translation notice set -e; P=/var/www/html/wp-content/plugins; H=/workspace/head-plugin; rm -rf $H; mkdir -p $H; git -C /repo archive HEAD … (run R24, exit 0) `cat > /var/www/html/wp-content/mu-plugins/zz-c5-timing.php <<'EOF'
Untested areas - PPOM Pro source is not in this repository. The check did not confirm that it defines `\PPOM_Pro\get_license_status` before `init`. - Help Scout delivery and the deactivation window were not exercised. - On base, the float-widget unit test errors on a missing SDK helper, not on its assertion.
🤖 Automated review · run code-review-agent_6afa3300c44462.69315820. --- **🤖 Review agent** — review posted ✅ on `788df09c` · [approved · 0 findings](https://github.com//pull/810#pullrequestreview-5913343623) · 18 min Run `code-review-agent_6afa3300c44462.69315820` · [trail](https://agents.vertistudio.com/admin/trails/github-pr/Codeinwp-woocommerce-product-addon-810)

@vytisbulkevicius
vytisbulkevicius merged commit 652ae3d into development Nov 16, 2026
10 checks passed
@vytisbulkevicius
vytisbulkevicius deleted the feat/support-hub branch November 16, 2026 18:48
@pirate-bot

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 34.0.14 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@pirate-bot pirate-bot added the released Indicate that an issue has been resolved and released in a particular version of the product. label Nov 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

released Indicate that an issue has been resolved and released in a particular version of the product.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants