wc_send_frame_options_header()
When loading sensitive checkout or account pages, send a HTTP header to limit rendering of pages to same origin iframes for security reasons.
Can be disabled with: remove_action( template_redirect, 'wc_send_frame_options_header' );
No Hooks.
Returns
null. Nothing (null).
Usage
wc_send_frame_options_header();
Changelog
| Since 2.3.10 | Introduced. |
wc_send_frame_options_header() wc send frame options header code WC 10.6.2
function wc_send_frame_options_header() {
if ( ( is_checkout() || is_account_page() ) && ! is_customize_preview() ) {
send_frame_options_header();
}
}