Repository navigation
feat: opt into the Themeisle SDK Support Hub - #124
Open
vytisbulkevicius wants to merge 2 commits into
Open
vytisbulkevicius wants to merge 2 commits into
vytisbulkevicius wants to merge 2 commits into
Conversation
Register the <slug>_support_hub_metadata filter so the shared Themeisle SDK Support Hub (Help button and deactivation window) is enabled for this theme, mirroring the existing _ai_connect_metadata filter. It is a free theme with no Pro tier, so is_pro is false. Development ships SDK 3.3.72.
Contributor
pirate-bot
approved these changes
Nov 23, 2026
Contributor
There was a problem hiding this comment.
🟢 Approved
Approved: the Support Hub filter works in the sandbox, and the inline comment asks for a PHPUnit case for it.
Validation details
- Files reviewed: 1/1 changed files.
- The locked themeisle-sdk 3.3.72 reads
fork_support_hub_metadataand accepts the returned shape and icon names. - In the WordPress sandbox, the filter returned the new metadata `cd /var/www/html && cat > /workspace/checks/R1/support-hub-probe.php <<'EOF'
Untested areas
- The deactivation window on Appearance → Themes → Add New was not checked in the browser. - The sandbox built the theme CSS with `sass` and skipped the JavaScript build, because node-sass fails on Node 24.| add_action( 'wp_ajax_fork_dismiss_design_pack_notice', array( $this, 'remove_design_pack_notice' ) ); | ||
| add_filter( 'themeisle_sdk_blackfriday_data', array( $this, 'add_black_friday_data' ) ); | ||
| add_filter( 'fork_ai_connect_metadata', array( $this, 'get_ai_connect_metadata' ) ); | ||
| add_filter( 'fork_support_hub_metadata', array( $this, 'get_support_hub_metadata' ) ); |
Contributor
There was a problem hiding this comment.
tests The new fork_support_hub_metadata filter changes what the SDK shows: the Help panel now appears on the theme's screens with two links. The PHPUnit suite reaches this code but has no case for the filter or its payload. Add tests/test-admin.php. Assert that has_filter( 'fork_support_hub_metadata' ) is true after the theme loads. Assert that apply_filters( 'fork_support_hub_metadata', array() ) returns is_pro false and two links with icon, text and url. The case fails on pr-base, where the filter is not registered.
…reens The theme fires themeisle_internal_page on the core Dashboard and Themes screens for its survey and AI Connect notice, which also made the SDK show its Help button there. Like Neve, the button should only show on a product's own screens, so the SDK script that draws it is dropped on those two screens. The theme-switch feedback still offers to contact support.
Contributor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Opt Fork into the shared Themeisle SDK Support Hub — the deactivation and theme-switch support we added to the other Themeisle products — by registering
fork_support_hub_metadata, mirroring the existing_ai_connect_metadatafilter.What changed
inc/Admin.php— register the Support Hub filter and addget_support_hub_metadata()returningis_proand the support links.Note
Fork is a free theme with no Pro tier, so
is_proisfalse. No SDK bump needed —developmentalready ships themeisle-sdk3.3.72. Nothing in the theme's support copy contradicts the Help panel.themeisle_internal_pageon the core Dashboard and Themes screens for its survey and AI Connect notice, which also made the SDK show the Help button there. The theme now drops the SDK script that draws the button (themeisle-sdk-support-hub) on those two screens. Like Neve, the button only shows on a product's own screens; Fork has none, so it shows no Help button. The survey, the AI Connect notice and the theme-switch "Contact support" keep working.QA
Install the Fork build from this PR and activate it. Log in as an administrator.
Open
WP Admin → Dashboard, thenWP Admin → Appearance → Themes.Expect: no Help button in the bottom-right corner on either screen.
On
Appearance → Themes, activate another theme.Expect: the theme feedback appears. A reason support can help with offers Contact support, which sends the message through the Support Hub.