Created
July 4, 2015 08:21
-
-
Save thefuxia/ef5246c730a56a29325e to your computer and use it in GitHub Desktop.
Where am I?
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 | |
/* Plugin Name: Where am I? | |
* Description: Adds the current server name and WordPress path to the admin footer. | |
* Version: 2015.07.04 | |
* Author: toscho | |
* Author URI: http://wpkrauts.com/ | |
* License: MIT | |
* License URI: http://opensource.org/licenses/MIT | |
*/ | |
add_filter( 'admin_footer_text', function( $text ) { | |
if ( current_user_can( 'update_core' ) ) | |
return '<code>Server: ' . php_uname( "n" ) . ' Path: ' . ABSPATH . '</code>'; | |
return $text; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment