How to change the permalink option to post name on theme activation?

Is there any filter to change the permalink structure and set it to post name after theme activation automatically?

i have custom posts but won’t work without changing the permalink?

thanks

Read more here:: How to change the permalink option to post name on theme activation?

Leave a Reply

Your email address will not be published. Required fields are marked *