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
| 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() ) { |
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 FKCart_Subscription_Styles { | |
| /** | |
| * Product types to remove from excluded list | |
| * | |
| * @var array | |
| */ | |
| private $product_types = array( 'subscription' ); | |
| public function __construct() { |
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_smart_container_display_hook',function (){ | |
| return 'woocommerce_before_checkout_form'; | |
| },10); |
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 WFACP_Elementor_Widget_CSS_Header_Loader { | |
| /** | |
| * Singleton instance | |
| * | |
| * @var WFACP_Elementor_Widget_CSS_Header_Loader|null | |
| */ | |
| private static $instance = null; | |
| /** |
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 WFACP_Force_Order_Summary_Images { | |
| /** | |
| * Instance of this class | |
| * | |
| * @var WFACP_Force_Order_Summary_Images | |
| */ | |
| private static $instance = null; | |
| /** |
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( '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'); |
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
| /** | |
| * 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). | |
| * |
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_enqueue_smart_buttons_inline_script','__return_true'); |
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( '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; | |
| } |
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
| 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', |
NewerOlder