Embed wordpress admin inside an iframe

[亡魂溺海] 提交于 2019-12-11 14:24:46

问题


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:


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


来源:https://stackoverflow.com/questions/29425222/embed-wordpress-admin-inside-an-iframe

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!