最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

plugin development - admin-post.php form handling only working when logged in as admin

programmeradmin6浏览0评论

I built a custom plugin with a form (with form action=admin-post.php and a hidden input for action being the form handler function name) and form handler function, it works as expected on other sites but on this particular site it only works when logged in as admin.

If not logged in, or logged in as a regular user, form submission redirects to site front page. If logged in as admin the form handler function is fired properly.

Any ideas of how to fix?

发布评论

评论列表(0)

  1. 暂无评论