Skip to main content
2 events
when toggle format what by license comment
May 10 at 22:29 comment added Rick Mac Gillis It's also useful to use the register_activation_hook() function to register an activation method to call flush_rewrite_rules() so that you don't repeatedly purge the rules on page load, and so that you don't need to remember to save the permalinks. This way it'll only run one time on activation and will "just work". Remember to do add_rewrite_endpoint() before it so it registers, though.
Jun 18, 2020 at 18:37 history answered Amin Abdolrezapoor CC BY-SA 4.0