ASTRA_Ext_LifterLMS_Markup::llms_checkout()
Distraction Free for LLMS Checkout Page.
Description
Return
(void)
Source
File: addons/lifterlms/classes/class-astra-ext-lifterlms-markup.php
public function llms_checkout() { if ( is_llms_checkout() && astra_get_option( 'lifterlms-distraction-free-checkout' ) ) { // HFB Support for distration free checkout. if ( true === astra_addon_builder_helper()->is_header_footer_builder_active ) { remove_action( 'astra_header', array( Astra_Builder_Header::get_instance(), 'prepare_header_builder_markup' ) ); remove_action( 'astra_footer', array( Astra_Builder_Footer::get_instance(), 'footer_markup' ), 10 ); } remove_action( 'astra_header', 'astra_header_markup' ); remove_action( 'astra_footer', 'astra_footer_markup' ); add_action( 'astra_header', array( $this, 'header_markup' ) ); add_action( 'astra_footer', array( $this, 'footer_markup' ) ); // Store Sidebar Layout. add_filter( 'astra_page_layout', array( $this, 'checkout_sidebar_layout' ), 99 ); } }
Expand full source code Collapse full source code View on Trac