Created
September 5, 2022 12:43
-
-
Save sandeepwisetr/9a4fe5b129054261d388e74ddd83d59c to your computer and use it in GitHub Desktop.
fatal error resolve when page editing with beaver builder elementor is present
This file contains 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 () { | |
if ( WFACP_Common::is_customizer() ) { | |
return; | |
} | |
$page_design = WFACP_Common::get_page_design( WFACP_Common::get_id() ); | |
if ( 'embed_forms' == $page_design['selected_type'] ) { | |
if ( ! WFACP_Common::is_customizer() ) { | |
add_filter( 'wfacp_embed_form_allow_header', '__return_false' ); | |
return; | |
} | |
} | |
} ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment