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_Woodmart_Theme_Lazy_Load { | |
public function __construct() { | |
add_action( 'wp_footer', [ $this, 'js' ] ); | |
} | |
public function js() { | |
?> | |
<script id='funnelkit_cart_script' defer> | |
window.addEventListener('DOMContentLoaded', function () { |
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_WooCommerce_International_Phone_Input { | |
public function __construct() { | |
add_action( 'wfacp_after_checkout_page_found', [ $this, 'action' ] ); | |
} | |
public function action() { | |
if ( ! $this->is_enabled() ) { | |
return; | |
} |
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_Enable_zero_discount { | |
private $item; | |
private $regular_price = 0; | |
public function __construct() { | |
add_filter( 'wfacp_allow_zero_discounting', [ $this, 'allow_zero_discount' ], 10, 2 ); | |
add_filter( 'wfacp_discount_regular_price_data', [ $this, 'get_regular_price' ] ); | |
add_filter( 'wfacp_discount_price_data', [ $this, 'set_regular_price' ] ); | |
} |
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
/** | |
* Disallow funnelkit stripe to save cards | |
**/ | |
add_filter('fkwcs_should_save_card',function( $save_card, $order) { | |
$order_id = $order->get_id(); | |
$save_card = ( function_exists( 'wcs_order_contains_subscription' ) && ( wcs_order_contains_subscription( $order_id ) || wcs_is_subscription( $order_id ) || wcs_order_contains_renewal( $order_id ) ) ); | |
return $save_card; | |
}); |
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 class for hide download block 'wffn_hide_download_block' | |
//add class for show only download block 'wffn_show_only_download_block' ' | |
add_action( 'wp_head', function () { | |
global $post; | |
if ( empty( $post ) || ! $post instanceof WP_Post || 'wffn_ty' !== $post->post_type ) { | |
return; | |
} | |
echo '<style> |
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 WFOCU_Upsell_Addon { | |
public function __construct() { | |
add_action( 'wp_footer', [ $this, 'js' ] ); | |
add_shortcode( 'wfocu_bucket_total', [ $this, 'bucket_total' ] ); | |
add_filter( 'wfocu_build_offer_product_before', array( $this, 'maybe_check_offer_data_for_qty_change' ), 10, 2 ); | |
add_filter( 'wfocu_prepare_upsell_package_before', array( $this, 'maybe_check_offer_data_for_qty_change' ), 10, 2 ); | |
add_action( 'wfocu_add_custom_html_above_accept_button', array( $this, 'schemes_template_html' ), 10, 2 ); | |
add_filter( 'wfocu_validate_charge_request', '__return_true' ); | |
} |
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
/** | |
* WFOB_Bump_Addons - Optimized class for managing order bumps with WooCommerce cart items | |
*/ | |
class WFOB_Bump_Addons { | |
/** | |
* @var array Filtered order bumps | |
*/ | |
private $filtered_bumps = []; |
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_Dequeue_Theme_Asset_by_Slug { | |
/** | |
* Array of asset handles that should be dequeued if they exist | |
* These will be checked against both JS and CSS registrations | |
*/ | |
private $assets_to_dequeue = [ | |
'bootstrap', | |
'select2', |
NewerOlder