Skip to content

Commit 971e1a2

Browse files
chore: add lkey
1 parent e25adf5 commit 971e1a2

File tree

1 file changed

+15
-4
lines changed

1 file changed

+15
-4
lines changed

includes/admin/feedzy-rss-feeds-admin.php

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2382,20 +2382,31 @@ public function set_black_friday_data( $config ) {
23822382
// translators: %1$s - discount, %2$s - product label.
23832383
$config['message'] = sprintf( __( 'Our biggest sale of the year: <strong>%1$s OFF</strong> on <strong>%2$s</strong>! Don\'t miss this limited-time offer.', 'feedzy-rss-feeds' ), $discount, $product_label );
23842384

2385-
$is_pro = feedzy_is_pro();
2385+
$is_pro = feedzy_is_pro();
2386+
$license_key = '';
23862387

23872388
if ( $is_pro ) {
23882389
$product_label = __( 'Feedzy Pro', 'feedzy-rss-feeds' );
23892390
$discount = '30%';
23902391

23912392
// translators: %1$s - discount, %2$s - product label.
23922393
$config['message'] = sprintf( __( 'Get <strong>%1$s off</strong> when you upgrade your <strong>%2$s</strong> plan or renew early.', 'feedzy-rss-feeds' ), $discount, $product_label );
2394+
2395+
if ( current_user_can( 'manage_options' ) ) {
2396+
$license_key = apply_filters( 'product_feedzy_license_key', '' );
2397+
}
2398+
}
2399+
2400+
$url_params = array(
2401+
'utm_term' => $is_pro ? 'plan-' . apply_filters( 'product_feedzy_license_plan', 0 ) : 'free'
2402+
);
2403+
2404+
if ( ! empty( $license_key ) ) {
2405+
$url_params['lkey'] = $license_key;
23932406
}
23942407

23952408
$config['sale_url'] = add_query_arg(
2396-
array(
2397-
'utm_term' => $is_pro ? 'plan-' . apply_filters( 'product_feedzy_license_plan', 0 ) : 'free'
2398-
),
2409+
$url_params,
23992410
tsdk_translate_link( tsdk_utmify( 'https://themeisle.com/plugins/feedzy-rss-feeds/blackfriday', 'bfcm', 'feedzy' ) )
24002411
);
24012412

0 commit comments

Comments
 (0)