admin管理员组文章数量:1430551
I have registered a custom foo
post type:
register_post_type('foo', [
'rewrite' => ['slug' => 'foo'],
'capability_type' => 'post',
]);
If I have created a foo with a slug of bar
I can access it with
/
I'd like to add an additional parameter to the end:
/
It looks like I need to add a ep_mask
key to the rewrite
array, but I am not sure how. The baz
part will vary and be used to generate the page differently.
本文标签: Accept additional argument on custom post type permalink
版权声明:本文标题:Accept additional argument on custom post type permalink 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745537100a2662320.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论