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