wc_send_frame_options_header()WC 2.3.10

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' );

Хуков нет.

Возвращает

null. Ничего (null).

Использование

wc_send_frame_options_header();

Список изменений

С версии 2.3.10 Введена.

Код wc_send_frame_options_header() WC 8.7.0

function wc_send_frame_options_header() {

	if ( ( is_checkout() || is_account_page() ) && ! is_customize_preview() ) {
		send_frame_options_header();
	}
}