Created
March 22, 2013 03:57
-
-
Save spencejs/5218858 to your computer and use it in GitHub Desktop.
Add Alert Notice To Options Pages In Wordpress
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
| //Add Alert Notice To Options Pages | |
| add_action( 'admin_notices', 'my_admin_notice' ); | |
| function my_admin_notice(){ | |
| global $current_screen;</div> | |
| if ( $current_screen->parent_base == 'options-general' ) | |
| echo '<div><p>Warning - changing settings on these pages may cause problems with your website’s design!</p></div>'; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment