admin管理员组文章数量:1336380
I've implemented a simple category ajax filter using admin-ajax.php that works perfectly if the user is not logged in or if the user is logged in as an administrator. For everyone else, it calls the homepage instead of respective category archive. No errors are thrown in the console.
I made sure to use the additional nopriv hook which is why this is baffling me.
add_action('wp_ajax_nopriv_filter', 'filter_ajax');
add_action('wp_ajax_filter','filter_ajax');
I specifically need to make sure it works for Subscribers. Any help is greatly appreciated!
本文标签: WordPress adminajaxphp not available for subscriberscontributors
版权声明:本文标题:WordPress admin-ajax.php not available for subscriberscontributors 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742390895a2465966.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论