Created
February 3, 2021 17:43
-
-
Save wpmu-authors/98b496826278084a2f7a5ea27994f781 to your computer and use it in GitHub Desktop.
delete-rewrite-rules.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
register_deactivation_hook( __FILE__, 'my_plugin_deactivation' ); | |
function my_plugin_deactivation() { | |
delete_option('rewrite_rules'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment