Embed wordpress admin inside an iframe

2019-08-11 00:50发布

I am trying to embed my wordpress admin in an iframe and it's not working. I tried many solutions such as removing those lines:

add_action( 'login_init', 'send_frame_options_header', 10, 0 );
add_action( 'admin_init', 'send_frame_options_header', 10, 0 );

but not working.

1条回答
乱世女痞
2楼-- · 2019-08-11 01:24

You need use remove_action function:

remove_action( 'login_init', 'send_frame_options_header', 10, 0 );
remove_action( 'admin_init', 'send_frame_options_header', 10, 0 );
查看更多
登录 后发表回答