Last active
August 29, 2015 13:57
-
-
Save jeremyboggs/9628054 to your computer and use it in GitHub Desktop.
Code to run on WP theme activation and deactivation.
This file contains hidden or 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
<?php | |
/** | |
* On theme activation. | |
*/ | |
function ivanhoe_after_switch_theme($theme_name) { | |
} | |
add_action('after_switch_theme', 'ivanhoe_after_switch_theme'); | |
/** | |
* On theme deactivation. | |
*/ | |
function ivanhoe_switch_theme($theme_name) { | |
} | |
add_action('switch_theme', 'ivanhoe_switch_theme'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment