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
add_action( 'wfacp_after_checkout_page_found', function () { | |
if ( function_exists( 'consulting_load_theme_scripts_and_styles' ) ) { | |
remove_action( 'wp_enqueue_scripts', 'consulting_load_theme_scripts_and_styles' ); | |
} | |
} ); |
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
add_filter('wfacp_register_advanced_field_types',function($fields_types){ | |
$fields_types[]=[ | |
'label' => __( 'Date', 'woofunnels-aero-checkout' ), | |
'value' => 'wfacp_date', | |
'key' => 'wfacp_date', | |
]; | |
return $fields_types; | |
},999); |
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
if ( ! class_exists( 'Funnelkit_Post_Type_allow' ) ) { | |
class Funnelkit_Post_Type_allow { | |
public function __construct() { | |
add_filter( 'wfob_offer_product_types', [ $this, 'add_post_types' ] ); | |
add_filter( 'wfacp_offer_product_types', [ $this, 'add_post_types' ] ); | |
add_filter( 'fkcart_product_types', [ $this, 'add_post_types' ] ); | |
add_filter( 'wfocu_offer_product_types', [ $this, 'add_post_types' ] ); | |
} | |
public function add_post_types( $supported_post_types ) { |
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
add_filter( 'woocommerce_update_order_review_fragments', function ( $fragments ) { | |
if ( isset( $fragments['.woocommerce-checkout-payment'] ) && empty( $fragments['.woocommerce-checkout-payment'] ) ) { | |
ob_start(); | |
if ( WC()->cart->needs_payment() ) { | |
$available_gateways = WC()->payment_gateways()->get_available_payment_gateways(); | |
WC()->payment_gateways()->set_current_gateway( $available_gateways ); | |
} else { | |
$available_gateways = array(); | |
} |
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
add_filter( 'jas_gecko_wc_shopping_cart', 'vincijaswim_disable_header_cart', 9999 ); | |
function vincijaswim_disable_header_cart( $output ) { | |
return do_shortcode( '[fk_cart_menu]' ); | |
} |
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
class WFACP_Display_Regular_price_In_Mini_Cart { | |
public $regular_price = ''; | |
public $tmp_reg_price = []; | |
public $is_on_sale_active = ''; | |
public function __construct() { | |
add_filter( 'wfacp_woocommerce_cart_item_subtotal_except_subscription', '__return_false' ); | |
add_action( 'wfacp_woocommerce_cart_item_subtotal_except_subscription_placeholder', [ $this, 'display_cut_price' ], 10, 3 ); | |
add_filter( 'wfacp_subscription_price_display', [ $this, 'display_cut_price_subscription' ], 10, 4 ); | |
add_action( 'wfacp_template_load', [ $this, 'action' ] ); |
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
add_filter( 'wfacp_caching_support', '__return_true' ); |
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
add_filter( 'wfacp_need_payment_gateway_refresh', function () { | |
return true; | |
}, 100 ); |
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
class WFACP_CustomFields_Inside_Gateway { | |
private $hook = 'woocommerce_checkout_after_terms_and_conditions'; | |
private $hook_priority = 10; | |
private $collected_fields = []; | |
public function __construct() { | |
add_action( $this->hook, [ $this, 'display_fields' ], $this->hook_priority ); |
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
class WF_Allow_Theme_CSS_JS { | |
private $allow_post_type = [ | |
'wffn_landing', | |
'wffn_ty', | |
'wffn_optin', | |
'wffn_oty', | |
]; |
NewerOlder