Skip to content

Instantly share code, notes, and snippets.

@thefuxia
Created July 4, 2015 08:21
Show Gist options
  • Save thefuxia/ef5246c730a56a29325e to your computer and use it in GitHub Desktop.
Save thefuxia/ef5246c730a56a29325e to your computer and use it in GitHub Desktop.
Where am I?
<?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