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
.