WordPress at Your Fingertips
Log In . Register
  • About About Contacts RSS feed
  • WordPress WordPress Cheat Sheet Codex Sitemap REST API WP-CLI
  • Functions Functions Conditional Tags Template Tags By Files WordPress - all WooCommerce - all
  • Hooks Hooks Trigger Order WordPress - all WooCommerce - all
  • Notes Notes
› All Functions ›
function is not described

send_frame_options_header() │ WP 3.1.3

Sends a HTTP header to limit rendering of pages to same origin iframes.

No Hooks.

Returns

null. Nothing (null).

Usage

send_frame_options_header();

Notes

  • See: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Frame-Options

Changelog

Since 3.1.3 Introduced.

send_frame_options_header() send frame options header code WP 6.8.1

wp-includes/functions.php
function send_frame_options_header() {
	header( 'X-Frame-Options: SAMEORIGIN' );
}
Kama © 2010-2025
0.055 sec. 2 SQL. 5.37 MB
Contacts     Privacy policy
Upload image
DRAG and DROP or past from the CLIPBOARD