forked from litespeedtech/lscache_wp
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
3rd: WooCommerce PayPal Checkout Gateway compatibility.
- Loading branch information
Showing
4 changed files
with
53 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,6 +27,7 @@ | |
'User_Switching', | ||
'WCML', | ||
'WooCommerce', | ||
'Woo_Paypal', | ||
'Wp_Polls', | ||
'WP_PostRatings', | ||
'Wpdiscuz', | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?php | ||
/** | ||
* The Third Party integration with WooCommerce PayPal Checkout Gateway | ||
* @ref https://wordpress.org/plugins/woocommerce-gateway-paypal-express-checkout/ | ||
* | ||
* @since 3.0 | ||
*/ | ||
namespace LiteSpeed\Thirdparty; | ||
defined( 'WPINC' ) || exit; | ||
|
||
class Woo_Paypal | ||
{ | ||
public static function detect() | ||
{ | ||
if ( ! defined( 'WC_GATEWAY_PPEC_VERSION' ) ) return; | ||
|
||
do_action( 'litespeed_nonce', '_wc_ppec_update_shipping_costs_nonce private' ); | ||
do_action( 'litespeed_nonce', '_wc_ppec_start_checkout_nonce private' ); | ||
do_action( 'litespeed_nonce', '_wc_ppec_generate_cart_nonce private' ); | ||
} | ||
} |