admin管理员组文章数量:1327849
The edit post permalink button is totally removed ( not hidden with css ) from the edit view - but the slug is still editable from both the Quick Edit view and also via the "slug" panel which I can show from Screen Options.
I am looking for some hints ( wp filters or JS perhaps ) which will help me locate the code which is removing this feature.
Checking the other post types, I can edit permalinks normally on pages.
Things I have done:
- reset all user permissions, this made no difference.
- check how post types are registered
- Check post type supports calls for changes to the Post post type
- Looked at other CPT's I have registered, some which have the permalink disabled by returning false for rewrite ( but this totally removes the permalink feature )
- Checked as many other obvious places I can
- Checked ACF group settings in case any were set-up to hide permalinks
Things I will do, if no handy search hints help me locate the issue:
- Turn off plugins / themes one by one and try to locate the issue.
Edit Post view:
Quick Edit view:
Post edit slug meta box:
Edit page view:
CPT with rewrite => false:
Permalink HTML:
The edit post permalink button is totally removed ( not hidden with css ) from the edit view - but the slug is still editable from both the Quick Edit view and also via the "slug" panel which I can show from Screen Options.
I am looking for some hints ( wp filters or JS perhaps ) which will help me locate the code which is removing this feature.
Checking the other post types, I can edit permalinks normally on pages.
Things I have done:
- reset all user permissions, this made no difference.
- check how post types are registered
- Check post type supports calls for changes to the Post post type
- Looked at other CPT's I have registered, some which have the permalink disabled by returning false for rewrite ( but this totally removes the permalink feature )
- Checked as many other obvious places I can
- Checked ACF group settings in case any were set-up to hide permalinks
Things I will do, if no handy search hints help me locate the issue:
- Turn off plugins / themes one by one and try to locate the issue.
Edit Post view:
Quick Edit view:
Post edit slug meta box:
Edit page view:
CPT with rewrite => false:
Permalink HTML:
Share Improve this question asked Aug 1, 2020 at 12:22 Q StudioQ Studio 2,5267 gold badges25 silver badges39 bronze badges 1- 2 Keep in mind this isn't a discussion forum, answers will need to solve and answer your question fully, so you need to word your question in a way that lets people answer it factually and fully, in a way that all people with this problem will look at the answer and say "yes, that is the answer", not just what helped you most. To start with, disable all plugins and switch to the default theme to see if a particular plugin or your theme causes this – Tom J Nowell ♦ Commented Aug 1, 2020 at 12:41
1 Answer
Reset to default 0The answer was an admin filter on post_link which was building a custom permalink and returning false in some edge-cases, which caused the edit button to be hidden.
本文标签: filtersEdit Post Permalink option removedlooking for possible causes
版权声明:本文标题:filters - Edit Post Permalink option removed, looking for possible causes 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742215286a2434454.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论