[英]how can i use wp-ajax in wp-admin root protected for public users?
i have locked my wp-admin root folder by my host by in my theme like this page i use wp ajax and because my wp-admin is locked this form not work what should had i to do for this problem? 我已按主题在此页面上按主机锁定了wp-admin根文件夹,我使用了wp ajax,并且由于wp-admin被锁定,此表格无法正常工作,我应该怎么处理这个问题? when user submit the form get this alert of protection
用户提交表单时收到此保护警报
http://www.onwebsite.ir is requesting your username and password. The site says: “Admins Area!”
is there any way i do my ajax requests in an other path? 有什么办法可以在其他路径中执行我的Ajax请求吗? or is has way for send information protection with form just for ajax file?
或有没有办法只针对ajax文件发送带有表单的信息保护?
and in the second action how can i change wp-login.php file url? 在第二个动作中,如何更改wp-login.php文件的URL?
thank you guys 感谢大伙们
This is the usual method: 这是通常的方法:
<Files admin-ajax.php> Order allow,deny Allow from all Satisfy any </Files>
Added to the .htaccess file within wp-admin. 已添加到wp-admin中的.htaccess文件。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.