-
-
Save wp-entwickler-at/f8a45459195c8fe76399 to your computer and use it in GitHub Desktop.
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 | |
/* 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