Created
March 3, 2020 12:00
-
-
Save sandeepwisetr/8284da46fd841ac81fd54407865c0f30 to your computer and use it in GitHub Desktop.
remove customizer css
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
<?php | |
add_action( 'wp_head', function () { | |
if ( class_exists( 'wfacp_core' ) ) { | |
if ( did_action( 'wfacp_after_checkout_page_found' ) ) { | |
$instance = WFACP_Core()->customizer->get_template_instance(); | |
remove_action( 'wfacp_header_print_in_head', [ $instance, 'add_style_inline' ] ); | |
remove_action( 'wfacp_header_print_in_head', [ $instance, 'typography_custom_css' ] ); | |
} | |
} | |
} ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment