Skip to content

Instantly share code, notes, and snippets.

@wp-entwickler-at
Forked from thefuxia/whereami.php
Last active August 29, 2015 14:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wp-entwickler-at/f8a45459195c8fe76399 to your computer and use it in GitHub Desktop.
Save wp-entwickler-at/f8a45459195c8fe76399 to your computer and use it in GitHub Desktop.
<?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