admin管理员组文章数量:1415137
Hey Wordpress Development,
I help manage a small starter template for my company and I was wondering if it's possible to set the permalink structure using either the functions file or wp_config file? The goal of this would be to help standardize practices. I've done a little bit of search but didn't find anything. Is it even a good idea?
thanks!
Hey Wordpress Development,
I help manage a small starter template for my company and I was wondering if it's possible to set the permalink structure using either the functions file or wp_config file? The goal of this would be to help standardize practices. I've done a little bit of search but didn't find anything. Is it even a good idea?
thanks!
Share Improve this question asked Oct 24, 2016 at 12:54 kcroake88kcroake88 232 silver badges6 bronze badges2 Answers
Reset to default 1You can customize permalink by using WordPress Rewrite_API in function file. See on codex
The permalink structure is stored in the option permalink_structure
. You could manually update or filter this option to force a specific value.
You can try different settings and see what gets stored in this option by manually visiting the all options page /wp-admin/options.php
and looking for permalink_structure
.
本文标签: Setting Permalinks in wpconfig or functions file
版权声明:本文标题:Setting Permalinks in wp_config or functions file? 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745209270a2647787.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论