0

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!

1

You can customize permalink by using WordPress Rewrite_API in function file. See on codex

0

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.