Created
July 2, 2025 11:35
-
-
Save xlplugins/f1443f67aa7762d659b209749e9c9951 to your computer and use it in GitHub Desktop.
Funnelkit Checkout: add compatability with ShopLentor – WooCommerce Builder for Elementor & Gutenberg by HasThemes
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_Woolentor_Addon{ | |
public function __construct() { | |
add_action( 'wfacp_checkout_page_found', [ $this, 'action' ], 15 ); | |
} | |
public function action() { | |
$is_global_checkout = WFACP_Core()->public->is_checkout_override(); | |
if(class_exists('Woolentor_Woo_Custom_Template_Layout_Pro') && false === $is_global_checkout) { | |
WFACP_Common::remove_actions('template_include','Woolentor_Woo_Custom_Template_Layout_Pro','change_page_template'); | |
} | |
} | |
} | |
new WFACP_Woolentor_Addon(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment