Last active
January 5, 2016 06:22
-
-
Save EnragedSuccubus/a515fd09c523aa88b4e0 to your computer and use it in GitHub Desktop.
Custom Message in WP-Admin EG 01
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 | |
function geissinger_reading_warning_message() { | |
global $pagenow; | |
if ( $pagenow == 'options-reading.php' ) | |
echo '<div class="error"><h3>WARNING! Do not adjust the "Front Page Displays" options! Your theme depends on these settings!.</h3></div>'; | |
} | |
add_action( 'admin_notices', 'geissinger_reading_warning_message' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment