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
| /** | |
| * FunnelKit Checkout: show Google address suggestions after fewer characters (default 3). | |
| */ | |
| add_action( 'wp_footer', function () { | |
| if ( ! wp_script_is( 'wfacp_checkout_js', 'enqueued' ) ) { | |
| return; | |
| } | |
| $min_chars = 1; // 1, 2 or 3. | |
| wp_add_inline_script( 'wfacp_checkout_js', 'wfacp_frontend.hooks.addFilter( "wfacp_google_autocomplete_min_chars", function () { return ' . absint( $min_chars ) . '; } );' ); | |
| }, 1 ); |
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
| /** | |
| * Show the quantity switcher for "Sold individually" products. | |
| */ | |
| add_filter( 'woocommerce_is_sold_individually', function ( $sold_individually, $product ) { | |
| // 1. Classic cart page display | |
| if ( did_action( 'wp' ) ) { | |
| return false; | |
| } |
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_footer', function () { | |
| ?> | |
| <script> | |
| jQuery( function ( $ ) { | |
| // Runs right after Aero's change handlers (bound on body) add the product switcher shimmer class, before it paints. | |
| $( document ).on( 'change', '#product_switching_field', function () { | |
| $( this ).removeClass( 'wfacp_animation_start' ); | |
| } ); | |
| } ); | |
| </script> |
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( 'wfacp_email_suggestion_domains', function ( $domains ) { | |
| $domains[] = 'mycorpmail.com'; | |
| $domains[] = 'web.de'; | |
| return $domains; | |
| } ); |
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
| /** | |
| * Hide FunnelKit express checkout buttons when Gift Wrapping is in the cart. | |
| * Works on page load and after AJAX cart updates (order bump, qty change, etc.). | |
| */ | |
| if ( ! function_exists( 'fk_giftwrap_hide_express_css' ) ) { | |
| function fk_giftwrap_in_cart() { | |
| $gift_wrap_ids = array( 14857 ); // Gift Wrapping product ID(s) | |
| if ( ! function_exists( 'WC' ) || ! WC()->cart ) { |
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( 'trx_addons_filter_skip_async_scripts_load', function ( $list ) { | |
| $list[] = 'intltelinput'; // FunnelKit checkout phone field library | |
| return $list; | |
| } ); |
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
| /** | |
| * Plugin Name: FK Tracking Settings Audit (bwf_gen_config) | |
| * Description: TEMPORARY diagnostic. Logs every change to FunnelKit's Pixel Tracking / general | |
| * settings (option `bwf_gen_config`, which holds the GA Analytics ID `ga_key`, | |
| * FB/GAds/TikTok/Pinterest/Snapchat keys, page bases, etc.) with the user, request | |
| * context, the exact keys that changed (old -> new), and a full PHP backtrace so you | |
| * can see WHICH code path altered it. Remove this file once traced. | |
| * Author: FunnelKit Support | |
| * Version: 1.0.0 | |
| */ |
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: Order Bump - dynamic SKU upgrade | |
| * Description: Offers and replaces the matching cart product dynamically, so one bump covers every | |
| * SKU pair instead of one bump per product. | |
| */ | |
| defined( 'ABSPATH' ) || exit; | |
| if ( ! class_exists( 'FKOB_Dynamic_SKU_Upgrade' ) ) { |
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
| /** | |
| * Plugin Name: Checkout AJAX profiler | |
| * Description: Logs where time goes during the checkout AJAX calls — every outbound HTTP request | |
| * with the code that made it, plus the hook timeline with a stack at each stall. | |
| * Nothing to define, nothing to configure. | |
| * Read at WooCommerce > Status > Logs > checkout-profiler. Delete when finished. | |
| */ | |
| defined( 'ABSPATH' ) || exit; |
NewerOlder