Advertisement
websupporter

The admin notice

May 14th, 2015
424
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.44 KB | None | 0 0
  1. <?php
  2. function theme_does_not_support_plugin(){
  3. ?>
  4. <div id="message" class="updated">
  5.     <p>
  6.         <strong><?php _e( 'Your theme does not support the plugin', 'plugin' ); ?></strong>
  7.     </p>
  8.     <p class="submit">
  9.         <a class="skip button-primary" href="<?php
  10.             echo esc_url(
  11.                 add_query_arg(
  12.                     'hide_theme_support_notice',
  13.                     1
  14.                 )
  15.             );
  16.         ?>">
  17.             <?php _e( 'Hide this notice', 'plugin' ); ?>
  18.         </a>
  19.     </p>
  20. </div>
  21. <?php
  22. }
  23. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement