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 () { | |
?> | |
<style> | |
iframe#__PrivateStripeFrame--card { | |
display: none !important; | |
} | |
</style> | |
<?php | |
} ); |
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('fkcart_before_cart_items', 'custom_js_snippet'); | |
function custom_js_snippet() { | |
?> | |
<script> | |
jQuery(function($) { | |
$(window).on('load', function() { | |
$('body .cart-trigger').click(function() { | |
$('body').trigger('fkcart_open'); |
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_Admin_Remove_Notice { | |
public function __construct() { | |
if ( is_admin() ) { | |
add_action( 'admin_notices', array( $this, 'remove_admin_notice' ), 9 ); | |
} | |
} |
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 FKCART_Prevent_Redirect_Issue { | |
public function __construct() { | |
add_filter('woocommerce_add_to_cart_product_id',function($product_id){ | |
if ( function_exists( 'resolve_dupes_add_to_cart_redirect' ) ) { | |
remove_action( 'add_to_cart_redirect', 'resolve_dupes_add_to_cart_redirect' ); | |
} | |
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 FKCartUpdater23072024 { | |
public function __construct() { | |
add_action( 'wp', [ $this, 'checkForCartOpen' ] ); | |
} | |
public function checkForCartOpen() { | |
if ( isset( $_GET['fkcart_open'] ) ) { | |
add_action( 'wp_footer', [ $this, 'addCartUpdateScript' ] ); |
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 FKCART_Trigger_Slide_Cart_When_Cart_Is_Non_Empty { | |
public function __construct() { | |
add_action( 'wp_footer', [ $this, 'action' ] ); | |
add_filter( 'body_class', function ( $body_class ) { | |
$body_class[] = 'fkcart_empty'; | |
return $body_class; |
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 FKCART_Shortcode { | |
public function __construct() { | |
add_action( 'after_setup_theme', [ $this, 'setup_theme' ] ); | |
} | |
public function setup_theme() { | |
add_action( 'wp_footer', [ $this, 'remove_action' ] ); | |
add_shortcode( 'fkcart_slider_on_page', [ $this, 'render' ] ); | |
} |
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_custom_woocommerce_gateway_icon($icon, $gateway_id) { | |
if ($gateway_id == 'fkwcs_stripe') { | |
$icon = '<img src="https://i.imgur.com/kf9psAE.png" alt="Stripe" />'; | |
} | |
return $icon; | |
} | |
add_filter('woocommerce_gateway_icon', 'fkwcs_custom_woocommerce_gateway_icon', 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
class WFACP_Compatibility_CountryCodeFor_Elementor_Form_Telephone { | |
public function __construct() { | |
add_action( 'wfacp_after_checkout_page_found', [ $this, 'action' ] ); | |
} | |
public function action() { | |
add_action( 'wp_enqueue_scripts', 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
add_action( 'wp_footer', function () { | |
?> | |
<script> | |
window.addEventListener('load', function () { | |
jQuery('body').on('wc_fragment_refresh', function () { | |
try { | |
wcpt_cart() | |
}catch (e) { | |
} |
NewerOlder