This file contains hidden or 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
add_action( 'wfacp_internal_css', function () { | |
?> | |
<style> | |
body #payment.wfacp_enable_loader .blockUI { | |
display: block !important; | |
} | |
</style> | |
<script> | |
window.addEventListener('load', function () { | |
if (undefined !== wfacp_frontend) { |
This file contains hidden or 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
class FunnelKit_Multiple_Pixel { | |
public function __construct() { | |
// Liste des hooks groupés par type | |
$this->add_filters( [ | |
// Facebook Pixel ID | |
'wfocu_fb_pixel_ids', | |
'bwf_fb_pixel_ids', | |
'wfacp_fb_pixel_ids' | |
], 'get_fb_pixel_id' ); |
This file contains hidden or 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
add_filter( 'fkcart_disabled_post_types', function ( $post_types ) { | |
$post_types=array_filter( $post_types, function ( $i ) { | |
return $i != 'wffn_landing'; | |
} ); | |
return $post_types; | |
} ); |
This file contains hidden or 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
class Fkcart_Min_Max_Snippet { | |
public function __construct() { | |
add_filter( 'woocommerce_quantity_input_args', [ $this, 'define_cart' ], - 1 ); | |
} | |
public function define_cart($args) { | |
if ( wp_doing_ajax() ) { | |
wc_maybe_define_constant( 'WOOCOMMERCE_CART', true ); | |
} | |
return $args; |
This file contains hidden or 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
class WFACP_Multiple_Country_Multilple_Checkout { | |
private $country = [ | |
'DE', | |
'GB', | |
]; | |
private $checkout_ids = [ | |
'384387', | |
'384341', | |
]; |
This file contains hidden or 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
window.addEventListener('load', function () { | |
wfob_frontend.hooks.addAction('wfob_before_ajax_add_order_bump', function () { | |
//put your code here when before order bump added to cart ajax run | |
}); | |
wfob_frontend.hooks.addAction('wfob_before_ajax_remove_order_bump', function () { | |
//put your code here when before order bump remove item from cart ajax run | |
}); |
This file contains hidden or 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
class WFACP_billing_Phone_Field_Masking { | |
private $fields=['billing_phone','shipping_phone']; | |
public function __construct() { | |
add_filter( 'woocommerce_form_field_args', [ $this, 'add_default_styling' ], 10, 2 ); | |
add_action( 'wp_footer', [ $this, 'internal_css_js' ] ); | |
} |
This file contains hidden or 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
add_action( 'wfacp_internal_css', function () { | |
?> | |
<style> | |
#payment ul li div.payment_box { | |
display: none; | |
} | |
#payment ul li:first-child div.payment_box{ | |
display:block; | |
} |
This file contains hidden or 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
class WFACP_Display_Product_Html_by_Id { | |
private $product_ids = []; | |
private $selected_product = 0; | |
private $display_products = [ | |
564, | |
1474, | |
]; | |