From 7e45e68d9c5a9cb768f07b396122998d0e2748fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vytis=20Bulkevi=C4=8Dius?= Date: Tue, 24 Nov 2026 00:15:17 +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 is enabled for this plugin, mirroring _ai_connect_metadata. Development ships SDK 3.3.72. --- inc/main.php | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/inc/main.php b/inc/main.php index ff97a119..04e478ab 100644 --- a/inc/main.php +++ b/inc/main.php @@ -108,6 +108,7 @@ public static function instance() { add_filter( 'optml_register_conflicts', [ __CLASS__, 'register_conflicts' ] ); add_filter( 'optimole_wp_logger_data', [ __CLASS__, 'add_settings' ] ); add_filter( 'optimole_wp_ai_connect_metadata', [ __CLASS__, 'add_ai_connect_metadata' ] ); + add_filter( 'optimole_wp_support_hub_metadata', [ __CLASS__, 'add_support_hub_metadata' ] ); self::$_instance = new self(); self::$_instance->manager = Optml_Manager::instance(); self::$_instance->rest = new Optml_Rest(); @@ -200,6 +201,24 @@ public static function add_ai_connect_metadata() { ]; } + /** + * Opt in to the SDK Support Hub: the links shown in the Help form. + * + * @return array{is_pro: bool, links: array} + */ + public static function add_support_hub_metadata() { + return [ + 'is_pro' => false, + 'links' => [ + [ + 'icon' => 'groups', + 'text' => __( 'Community Forum', 'optimole-wp' ), + 'url' => 'https://wordpress.org/support/plugin/optimole-wp/', + ], + ], + ]; + } + /** * Register product into SDK. *