Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save xlplugins/f1443f67aa7762d659b209749e9c9951 to your computer and use it in GitHub Desktop.
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
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