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
| function shoptimizer_child_bankful_hosted_direct_redirect( $url, $order ) { | |
| if ( ! function_exists( 'WC' ) || ! WC()->payment_gateways() ) { | |
| return $url; | |
| } | |
| if ( ! $order instanceof WC_Order ) { | |
| return $url; | |
| } | |
| if ( 'bankful_hosted_gateway' !== $order->get_payment_method() ) { | |
| return $url; | |
| } |
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
| <?php | |
| defined( 'ABSPATH' ) || exit; | |
| add_filter( | |
| 'wffn_ecomm_tracking_fb_params', | |
| static function ( $data, $order = null ) { | |
| if ( ! $order instanceof WC_Order ) { | |
| return $data; | |
| } |
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( 'fkwcs_stripe_payment_element_data', function( $data, $gateway ) { | |
| if ( ! is_array( $data ) || ! isset( $data['element_options'] ) ) { | |
| return $data; | |
| } | |
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
| <?php | |
| /** | |
| * Plugin Name: Plakatdyr — FunnelKit kundetype (MU) | |
| * Description: Theme customer-type radios on FunnelKit only; plakatdr CSS if missing; small #plakatdr-kundete override so WFACP’s global input[type=radio] rules do not break layout. | |
| * Version: 1.7.0 | |
| */ | |
| if ( ! defined( 'ABSPATH' ) ) { | |
| exit; | |
| } |
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 WFOB_Single_Bump_Selector { | |
| private $bump_ids = array( 3094, 3095 ); // ← Your bump IDs here | |
| public function __construct() { | |
| add_action( 'wfob_before_add_to_cart', array( $this, 'remove_other_bumps' ), 5 ); | |
| add_action( 'wp_footer', array( $this, 'uncheck_other_bumps_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
| /** | |
| * DB connection sync (shutdown) | |
| * Description: Clears any pending MySQL result set on the default connection before other shutdown hooks run, reducing "Commands out of sync" errors from Action Scheduler, WooCommerce batch processing, Jetpack, and cron. | |
| * Version: 1.0.0 | |
| * | |
| * @package | |
| */ | |
| if ( ! defined( 'ABSPATH' ) ) { | |
| exit; |
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( | |
| 'wp_enqueue_scripts', | |
| static function () { | |
| if ( ! function_exists( 'is_checkout' ) || ! is_checkout() || is_order_received_page() ) { | |
| return; | |
| } | |
| /* FunnelKit not active — nothing to bridge. */ | |
| if ( ! class_exists( 'WFACP_Common' ) ) { | |
| 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
| add_action( 'init', function () { | |
| if( class_exists('\FunnelKit\PayPal\Compatibilities\FunnelKit\Checkout') ){ | |
| $instance = \FunnelKit\PayPal\Compatibilities\FunnelKit\Checkout::get_instance(); | |
| remove_filter( 'wfacp_smart_buttons', array( $instance, 'register_smart_button' ), 99 ); | |
| add_filter( 'wfacp_smart_buttons', array( $instance, 'register_smart_button' ), 10 ); | |
| } | |
| } ); |
NewerOlder