Advertisement
websupporter

Hide the notice

May 14th, 2015
422
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.29 KB | None | 0 0
  1. <?php
  2. add_action( 'admin_print_styles', 'theme_does_not_support_plugin_hide_notice', 9 );
  3. function theme_does_not_support_plugin_hide_notice(){
  4.     if( isset( $_GET['hide_theme_support_notice'] ) && $_GET['hide_theme_support_notice'] == 1 )
  5.         update_option( 'plugin_theme_support', 1 );
  6. }
  7. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement