/ Published in: PHP
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<?php add_filter('admin_user_info_links','blog_id_in_howdy_greeting'); function blog_id_in_howdy_greeting($links) { global $blog_id; if ( is_super_admin() ) { $links[] = ' | <a href="/ms-sites.php?action=editblog&id=' . $blog_id . '">Site ID: ' . $blog_id . '</a>'; } else { $links[] = ' | Site ID: ' . $blog_id; } return $links; } ?>
URL: http://trepmal.com/wordpress-tips/put-site-id-by-howdy-greeting-in-wordpress/