Created
November 28, 2012 14:57
-
-
Save seebz/4161791 to your computer and use it in GitHub Desktop.
WP admin_notice_blog_norobots
This file contains 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 admin_notice_blog_norobots() | |
{ | |
if ( ! get_option('blog_public') && current_user_can('manage_options')) | |
{ | |
printf('<div class="error">%s</div>', | |
"<p><strong>Attention</strong>, le site n'est actuellement pas indexable par les moteurs de recherche !</p>" | |
); | |
} | |
} | |
add_action('admin_notices', 'admin_notice_blog_norobots'); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment