Created
November 27, 2018 21:25
-
-
Save mhackersu/efe297a5d63b68fa2594fdc1e7b91784 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
/** | |
* Allow rendering of checkout and account pages in iframes. | |
*/ | |
add_action( 'after_setup_theme', 'wc_remove_frame_options_header', 11 ); | |
function wc_remove_frame_options_header() { | |
remove_action( 'template_redirect', 'wc_send_frame_options_header' ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment