Created
March 3, 2020 12:00
-
-
Save sandeepwisetr/9ee5abaae00dc99d4c749250bc206d1f 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