PluginProbe ʕ •ᴥ•ʔ
LiteSpeed Cache / 7.0.1
LiteSpeed Cache v7.0.1
trunk 1.0.15 1.9.1.1 2.9.9.2 3.6.4 4.6 5.7.0.1 6.5.4 7.0.0.1 7.0.1 7.1 7.2 7.3 7.3.0.1 7.4 7.5 7.5.0.1 7.6 7.6.1 7.6.2 7.7 7.8 7.8.0.1 7.8.1
litespeed-cache / thirdparty / wc-pdf-product-vouchers.cls.php
litespeed-cache / thirdparty Last commit date
aelia-currencyswitcher.cls.php 1 year ago amp.cls.php 1 year ago autoptimize.cls.php 1 year ago avada.cls.php 1 year ago bbpress.cls.php 1 year ago beaver-builder.cls.php 1 year ago caldera-forms.cls.php 1 year ago divi-theme-builder.cls.php 1 year ago elementor.cls.php 1 year ago entry.inc.php 1 year ago facetwp.cls.php 1 year ago gravity-forms.cls.php 1 year ago litespeed-check.cls.php 1 year ago nextgengallery.cls.php 1 year ago perfmatters.cls.php 1 year ago theme-my-login.cls.php 1 year ago user-switching.cls.php 1 year ago wc-pdf-product-vouchers.cls.php 1 year ago wcml.cls.php 1 year ago woo-paypal.cls.php 1 year ago woocommerce.cls.php 1 year ago woocommerce.content.tpl.php 1 year ago woocommerce.tab.tpl.php 1 year ago wp-polls.cls.php 1 year ago wp-postratings.cls.php 1 year ago wpdiscuz.cls.php 1 year ago wplister.cls.php 1 year ago wpml.cls.php 1 year ago wptouch.cls.php 1 year ago yith-wishlist.cls.php 1 year ago
wc-pdf-product-vouchers.cls.php
32 lines
1 <?php
2 /**
3 * The Third Party integration with WooCommerce PDF Product Vouchers.
4 *
5 * @since 5.1.0
6 */
7 namespace LiteSpeed\Thirdparty;
8
9 defined('WPINC') || exit();
10
11 class WC_PDF_Product_Vouchers
12 {
13 /**
14 * Do not cache generated vouchers
15 *
16 * @since 5.1.0
17 */
18 public static function detect()
19 {
20 if (!class_exists('\WC_PDF_Product_Vouchers_Loader')) {
21 return;
22 }
23
24 $is_voucher = !empty($_GET['post_type']) && 'wc_voucher' === $_GET['post_type'];
25 $has_key = !empty($_GET['voucher_key']) || !empty($_GET['key']);
26
27 if ($is_voucher && $has_key) {
28 do_action('litespeed_control_set_nocache', '3rd WC PDF Product Voucher');
29 }
30 }
31 }
32