How To Get WordPress To Open A New Page In An iFrame
erics, Posted July 30th, 2011 at 5:36:05pm
Edit the file wordpress/wp-includes/functions.php
and just comment out the line in the middle:
1 2 3 |
function send_frame_options_header() { //@header( 'X-Frame-Options: SAMEORIGIN' ); } |
UPDATE: Based on Brent’s comment, here is a better solution:
1 2 |
remove_action( 'login_init', 'send_frame_options_header' ); remove_action( 'admin_init', 'send_frame_options_header' ); |
Brent Shepherd said on July 31, 2011, 9:27 am:
It’s not necessary to modify the core. This function is called twice via hooks, so we can remove the hooks: