PluginProbe
Tiered Pricing Table for WooCommerce / 2.1.2
Tiered Pricing Table for WooCommerce v2.1.2
8.0.2 7.1.7 7.1.5 7.1.4 7.1.1 6.5.0 6.4.0 6.1.0 trunk 1.0 1.1 2.0 2.0.1 2.0.2 2.1 2.1.1 2.1.2 2.2.0 2.2.1 2.2.2 2.2.3 2.3.0 2.3.1 2.3.2 2.3.3 All 91 releases
tier-pricing-table / freemius / templates / add-trial-to-pricing.php

add-trial-to-pricing.php in Tiered Pricing Table for WooCommerce 2.1.2, at freemius/templates/add-trial-to-pricing.php

31 lines 794 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Add "&trial=true" to pricing menu item href when running in trial
4 * promotion context.
5 *
6 * @package Freemius
7 * @copyright Copyright (c) 2016, Freemius, Inc.
8 * @license https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License Version 3
9 * @since 1.2.1.5
10 */
11
12 if ( ! defined( 'ABSPATH' ) ) {
13 exit;
14 }
15
16 /**
17 * @var Freemius $fs
18 */
19 $fs = freemius( $VARS['id'] );
20 ?>
21 <script type="text/javascript">
22 (function ($) {
23 $(document).ready(function () {
24 var $pricingMenu = $('.fs-submenu-item.<?php echo $fs->get_unique_affix() ?>.pricing'),
25 $pricingMenuLink = $pricingMenu.parents('a');
26
27 // Add trial querystring param.
28 $pricingMenuLink.attr('href', $pricingMenuLink.attr('href') + '&trial=true');
29 });
30 })(jQuery);
31 </script>