Advertisement
websupporter

Reset on switch theme

May 14th, 2015
426
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.18 KB | None | 0 0
  1. <?php
  2. add_action( 'switch_theme', 'reset_plugin_theme_support_hide_notice' );
  3. function reset_plugin_theme_support_hide_notice(){
  4.     update_option( 'plugin_theme_support', 0 );
  5. }
  6. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement