在iframe中嵌入wordpress admin [英] Embed wordpress admin inside an iframe
本文介绍了在iframe中嵌入wordpress admin的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试将我的wordpress管理员嵌入到iframe中,但它无效。
我尝试了很多解决方案,例如删除这些行:
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 );
但无效。
推荐答案
你需要使用remove_action函数:
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 );
这篇关于在iframe中嵌入wordpress admin的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文