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_Theme_Sofass_by_GoalTheme { | |
public function __construct() { | |
add_action( 'after_setup_theme', [ $this, 'register_elementor_widget' ], 20 ); | |
add_action( 'wfacp_internal_css', [ $this, 'add_css' ], 20 ); | |
} | |
public function register_elementor_widget() { |
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_Enable_Express_Checkout { | |
public function __construct() { | |
add_action( 'wfacp_template_load', [ $this, 'checkout_hook' ] ); | |
} | |
public function checkout_hook() { | |
add_filter( 'wfacp_page_settings', [ $this, 'enable_smart_button_optimizations' ] ); | |
} | |
public function enable_smart_button_optimizations( $page_settings ) { |
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_internal_css', function () { | |
?> | |
<script> | |
window.addEventListener('load', function () { | |
wfacp_frontend.hooks.addFilter('wfacp_countries_address_format', function (format) { | |
format.fr = { | |
'_address_1': {'keys': {'route': 'long_name'}, 'separator': ' '}, | |
'_address_2': {'keys': {'street_number': 'long_name'}, 'separator': ' '}, | |
'_city': {'keys': {'locality': 'long_name', 'postal_town': 'long_name'}, 'separator': ' '}, |
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_Theme_Issabella_by_JWSThemes_team { | |
function __construct() { | |
add_action( 'wfacp_after_template_found', [ $this, 'action' ] ); | |
} | |
public function action() { | |
if ( function_exists( 'jws_setup' ) ) { | |
remove_action( 'woocommerce_checkout_after_customer_details', 'woocommerce_checkout_payment', 30 ); |
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_Goya_Theme { | |
function __construct() { | |
add_action( 'wfacp_after_template_found', [ $this, 'action' ] ); | |
} | |
public function action() { | |
if ( function_exists( 'goya_product_image_on_checkout' ) ) { | |
remove_filter( 'woocommerce_cart_item_name', 'goya_product_image_on_checkout', 10, 3 ); | |
} |
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 FunnelKitWPCComposite1 { | |
public $tmp = []; | |
public function __construct() { | |
add_filter( 'fkcart_is_child_item', [ $this, 'check_free_item' ], 10, 2 ); | |
add_filter( 'fkcart_item_hide_delete_icon', [ $this, 'check_free_item' ], 10, 2 ); | |
add_filter( 'fkcart_cart_item_is_sold_individually', [ $this, 'check_free_item' ], 10, 2 ); | |
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( 'wp_footer', function () { | |
// Check if we're on the cart page | |
if ( function_exists('is_cart') && is_cart() ) { | |
?> | |
<script> | |
(function () { | |
window.addEventListener('DOMContentLoaded', function () { |
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
function fkwcs_filter_wc_stripe_payment_metadata($metadata, $order) | |
{ | |
/** | |
* Get order data | |
*/ | |
$order_data = $order->get_data(); | |
$metadata[__('Customer Name', 'funnelkit-stripe-woo-payment-gateway')] = sanitize_text_field($order_data['billing']['first_name'] . ' ' . $order_data['billing']['last_name']); | |
$metadata[__('Customer Phone', 'funnelkit-stripe-woo-payment-gateway')] = sanitize_text_field($order_data['billing']['phone']); | |
$metadata[__('Total Tax', 'funnelkit-stripe-woo-payment-gateway')] = sanitize_text_field($order_data['total_tax']); |
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
/** | |
* Disallow FunnelKit Stripe plugin support for tokenization | |
*/ | |
add_action( 'woocommerce_payment_gateway_supports', function ( $bool, $feature, $gateway ) { | |
if ( $gateway->id === 'fkwcs_stripe' && $feature === 'tokenization' ) { | |
return false; | |
} | |
return $bool; |
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_Compatibility_With_WC_Points_and_Reward_mini_cart { | |
public $instance = null; | |
public $message = ''; | |
public $count = 0; | |
public function __construct() { | |
/* Unhook rewards and points */ | |
add_action( 'wfacp_template_load', [ $this, 'actions' ], 9 ); |
NewerOlder