I'm developing a Wordpress theme and I've created some options because I want to be able to change the permalink structure: to remove the /category base, to add the trailing slash "/" at the end, etc.
When I save the changes, these are not applied. So, if I press F5 and I click a link to load an URL, it shows "Page not found". To see the changes applied I need to go to the Permalinks Settings page of Wordpress and click "Save settings".
Doing that, Wordpress recognizes the changes of my own Theme Options.
How can I save these settings directly from my Theme Options page?