From 74bcb6c1d17550d5ff10eb30cb5d08721401fbac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vytis=20Bulkevi=C4=8Dius?= Date: Mon, 23 Nov 2026 23:56:30 +0200 Subject: [PATCH] feat(support): opt into the Themeisle SDK Support Hub Register the _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. --- inc/Admin.php | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/inc/Admin.php b/inc/Admin.php index 64d75fc..9e45928 100644 --- a/inc/Admin.php +++ b/inc/Admin.php @@ -39,6 +39,7 @@ public function setup_admin_hooks() { add_action( 'wp_ajax_raft_dismiss_design_pack_notice', array( $this, 'remove_design_pack_notice' ) ); add_filter( 'themeisle_sdk_blackfriday_data', array( $this, 'add_black_friday_data' ) ); add_filter( 'raft_ai_connect_metadata', array( $this, 'get_ai_connect_metadata' ) ); + add_filter( 'raft_support_hub_metadata', array( $this, 'get_support_hub_metadata' ) ); } /** @@ -461,4 +462,29 @@ public function get_ai_connect_metadata() { ), ); } + + /** + * Metadata for the Themeisle SDK Support Hub: the footer links shown in the Help form. + * + * Raft is a free theme with no Pro tier, so is_pro is always false. + * + * @return array{is_pro: bool, links: array} + */ + public function get_support_hub_metadata() { + return array( + 'is_pro' => false, + 'links' => array( + array( + 'icon' => 'book-alt', + 'text' => __( 'Documentation', 'raft' ), + 'url' => 'https://docs.themeisle.com/fse-themes/raft-fse-theme', + ), + array( + 'icon' => 'groups', + 'text' => __( 'Community Forum', 'raft' ), + 'url' => 'https://wordpress.org/support/theme/raft/', + ), + ), + ); + } }