From 81459fdc0a51381872c78fd0f9af324ecdc3f4cb Mon Sep 17 00:00:00 2001 From: Ajay D'Souza Date: Fri, 29 Nov 2024 20:06:45 +0000 Subject: [PATCH] Change pro upgrade link --- includes/admin/settings/class-settings.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/includes/admin/settings/class-settings.php b/includes/admin/settings/class-settings.php index 240a761..12c0d32 100644 --- a/includes/admin/settings/class-settings.php +++ b/includes/admin/settings/class-settings.php @@ -12,6 +12,8 @@ use WebberZone\Better_Search\Util\Helpers; +use function WebberZone\Better_Search\bsearch_freemius; + // If this file is called directly, abort. if ( ! defined( 'WPINC' ) ) { die; @@ -1131,7 +1133,7 @@ public static function after_setting_output( $output, $args ) { if ( isset( $args['pro'] ) && $args['pro'] ) { $output .= sprintf( '%s', - esc_url( 'https://webberzone.com/plugins/better-search/pro/' ), + esc_url( bsearch_freemius()->get_upgrade_url() ), esc_attr__( 'Upgrade to Pro', 'better-search' ), esc_html__( 'Upgrade to Pro', 'better-search' ) );