PluginProbe
Visualizer – Tables & Charts Manager with Built-in AI Generator / 3.10.7
Visualizer – Tables & Charts Manager with Built-in AI Generator v3.10.7
4.0.8 4.0.7 4.0.6 4.0.5 4.0.4 4.0.3 3.0.5 3.0.6 3.0.7 3.0.8 3.0.9 3.1.0 3.1.1 3.1.2 3.1.3 3.10.0 3.10.1 3.10.10 3.10.11 3.10.12 3.10.13 3.10.14 3.10.15 3.10.2 3.10.3 All 149 releases
← All changes | vendor/codeinwp/themeisle-sdk/src/Modules/Welcome.php +4 -5 4.0.43.10.7 View file →
@@ -24,9 +24,8 @@
24 24 namespace ThemeisleSDK\Modules;
25 25
26 26 // Exit if accessed directly.
27 27 use ThemeisleSDK\Common\Abstract_Module;
28 -use ThemeisleSDK\Loader;
29 28
30 29 if ( ! defined( 'ABSPATH' ) ) {
31 30 exit;
32 31 }
@@ -140,9 +139,9 @@
140 139 // filter out the notifications that are not welcome upsells
141 140 // if we arrived here we will have at least one welcome upsell
142 141 $all_notifications = array_filter(
143 142 $all_notifications,
144 - function ( $notification ) {
143 + function( $notification ) {
145 144 return strpos( $notification['id'], '_welcome_upsell_flag' ) !== false;
146 145 }
147 146 );
148 147
@@ -153,12 +152,12 @@
153 152 $pro_name = isset( $offer['pro_name'] ) ? $offer['pro_name'] : $this->product->get_friendly_name() . ' PRO';
154 153
155 154 $link = $offer['cta_link'];
156 155
157 - $message = apply_filters( $this->product->get_key() . '_welcome_upsell_message', Loader::$labels['welcome']['message'] );
156 + $message = apply_filters( $this->product->get_key() . '_welcome_upsell_message', '<p>You\'ve been using <b>{product}</b> for 7 days now and we appreciate your loyalty! We also want to make sure you\'re getting the most out of our product. That\'s why we\'re offering you a special deal - upgrade to <b>{pro_product}</b> in the next 5 days and receive a discount of <b>up to 30%</b>. <a href="{cta_link}" target="_blank">Upgrade now</a> and unlock all the amazing features of <b>{pro_product}</b>!</p>' );
158 157
159 - $button_submit = apply_filters( $this->product->get_key() . '_feedback_review_button_do', Loader::$labels['welcome']['ctay'] );
160 - $button_cancel = apply_filters( $this->product->get_key() . '_feedback_review_button_cancel', Loader::$labels['welcome']['ctan'] );
158 + $button_submit = apply_filters( $this->product->get_key() . '_feedback_review_button_do', 'Upgrade Now!' );
159 + $button_cancel = apply_filters( $this->product->get_key() . '_feedback_review_button_cancel', 'No, thanks.' );
161 160 $message = str_replace(
162 161 [ '{product}', '{pro_product}', '{cta_link}' ],
163 162 [
164 163 $this->product->get_friendly_name(),