send_frame_options_header
Send a HTTP header to limit rendering of pages to same origin iframes.
Description
send_frame_options_header();
Usage
if ( !function_exists( 'send_frame_options_header' ) ) { require_once ABSPATH . WPINC . '/functions.php'; } // NOTICE! Understand what this does before running. $result = send_frame_options_header();
Defined (1)
The function is defined in the following location(s).
- /wp-includes/functions.php
- function send_frame_options_header() {
- @header( 'X-Frame-Options: SAMEORIGIN' );
- }