Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.