Skip to content

Commit 8d2263b

Browse files
committed
[pricing] [update] Pass current license to the pricing SPA.
1 parent a621c75 commit 8d2263b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

templates/pricing.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@
9494
'selector' => '#fs_pricing_wrapper',
9595
'unique_affix' => $fs->get_unique_affix(),
9696
'show_annual_in_monthly' => $fs->apply_filters( 'pricing/show_annual_in_monthly', true ),
97+
'license' => $fs->has_active_valid_license() ? $fs->_get_license() : null,
9798
), $query_params );
9899

99100
wp_add_inline_script( 'freemius-pricing', 'Freemius.pricing.new( ' . json_encode( $pricing_config ) . ' )' );

0 commit comments

Comments
 (0)