I have a javascript app running in a Wordpress page as an iframe. I want to take the WP member username into my app, and use it to call a php file which returns a directory listing from that user's folder (/[username]/) as a javascript array inside my app. I have successfully used a glob command to retrieve known directory listings, but I need a dynamic way to get any user's content into my application. Please help.
1条回答 默认 最新
- dongluan1743 2018-10-16 05:20关注
To use wordpress user data outside wordpress or in iFrame you have to include
wp-load.php
file in order to load the wordpress core functions anywhere in current project.wp-load.php
is one way to load WP from external scripts, allowing the use of WP functions among other features.解决 无用评论 打赏 举报
悬赏问题
- ¥15 多电路系统共用电源的串扰问题
- ¥15 slam rangenet++配置
- ¥15 有没有研究水声通信方面的帮我改俩matlab代码
- ¥15 对于相关问题的求解与代码
- ¥15 ubuntu子系统密码忘记
- ¥15 信号傅里叶变换在matlab上遇到的小问题请求帮助
- ¥15 保护模式-系统加载-段寄存器
- ¥15 电脑桌面设定一个区域禁止鼠标操作
- ¥15 求NPF226060磁芯的详细资料
- ¥15 使用R语言marginaleffects包进行边际效应图绘制