Skip to content

Instantly share code, notes, and snippets.

View xlplugins's full-sized avatar

XLPlugins xlplugins

View GitHub Profile
@xlplugins
xlplugins / gist:214d8cfb84cfc763b594d262ff6d82d4
Created January 8, 2026 07:29
FunnelKit Compatibility with Jet-Search Blocks Integration
if ( ! class_exists( 'WFACP_Compatibility_With_Jetsearch' ) ) {
class WFACP_Compatibility_With_Jetsearch {
public function __construct() {
add_action( 'init', array( $this, 'register_elementor_widget' ), 99 );
}
public function register_elementor_widget() {
if ( is_admin() ) {
@xlplugins
xlplugins / gist:797277bf4597763c64e283e1ea2cd715
Created January 7, 2026 06:19
Funnelkit Cart: Remove subscription types from FKCart special addon excluded product types
class FKCart_Subscription_Styles {
/**
* Product types to remove from excluded list
*
* @var array
*/
private $product_types = array( 'subscription' );
public function __construct() {
@xlplugins
xlplugins / move_express_btn_below_collapsible_order_summary_and_orderbump.php
Last active January 5, 2026 08:42
move express btn between collapsible order summary and orderbump
add_filter('wfacp_smart_container_display_hook',function (){
return 'woocommerce_before_checkout_form';
},10);
@xlplugins
xlplugins / class WFACP_Elementor_Widget_CSS_Header_Loader {
Created January 2, 2026 07:12
Funnelkit Load Elementor widget CSS files in header instead of footer
class WFACP_Elementor_Widget_CSS_Header_Loader {
/**
* Singleton instance
*
* @var WFACP_Elementor_Widget_CSS_Header_Loader|null
*/
private static $instance = null;
/**
@xlplugins
xlplugins / WFACP_Force_Order_Summary_Images
Last active December 29, 2025 11:17
Funnelkit Checkout: Force Enable Product Images in WooFunnels Aero Checkout Order Summary (Elementor)
class WFACP_Force_Order_Summary_Images {
/**
* Instance of this class
*
* @var WFACP_Force_Order_Summary_Images
*/
private static $instance = null;
/**
@xlplugins
xlplugins / gist:854212eda7040b66160a48f071c2f266
Last active December 24, 2025 11:39
Ensure wfacp-form-control class exists on billing state and city fields
add_action( 'wfacp_internal_css', function() {
?>
<script>
(function($) {
function addClassIfMissing() {
var $fields = $('#billing_state, #billing_city');
$fields.each(function() {
if (!$(this).hasClass('wfacp-form-control')) {
$(this).addClass('wfacp-form-control');
@xlplugins
xlplugins / fluent_forms_optin.php
Created December 23, 2025 13:52
Fluent Forms + FunnelKit Optin forms
/**
* Fluent Forms submission -> FunnelKit Optin contact + optin entry + analytics tracking
* With debug logging in key areas.
*/
/**
* ONE-TIME cleanup: delete all opt-in conversions from BWF conversion tracking table.
* Optin conversions are identified by `type = 1` (per schema).
*
@xlplugins
xlplugins / gist:f33732a7934d59f1a8d260fdda8f35fd
Created December 22, 2025 12:30
Funnelkit Checkout: Smart Buttons Script Enqueuing Improvements
add_filter('wfacp_enqueue_smart_buttons_inline_script','__return_true');
@xlplugins
xlplugins / Remove CSS of PayPal
Created December 19, 2025 14:14
Remove CSS of PayPal
add_action( 'wfacp_after_checkout_page_found', function() {
// Only proceed if we're on a FunnelKit checkout page
if ( ! class_exists( 'WFACP_Common' ) ) {
return;
}
$wfacp_id = WFACP_Common::get_id();
if ( empty( $wfacp_id ) ) {
return;
}
@xlplugins
xlplugins / gist:efec709e82ac1e4647828fe8d6644af6
Created December 19, 2025 06:55
Ensures billing fields are properly copied from shipping address when billing address is optional and "same as shipping" is selected.
if ( ! class_exists( 'WFACP_Billing_Field_Copy_Handler' ) ) {
class WFACP_Billing_Field_Copy_Handler {
/**
* Fields that should be copied from shipping to billing
*
* @var array
*/
private $copy_fields = array(
'first_name',