Skip to content

Instantly share code, notes, and snippets.

Created September 18, 2014 21:03
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 anonymous/913d4e7360658b2c9166 to your computer and use it in GitHub Desktop.
Save anonymous/913d4e7360658b2c9166 to your computer and use it in GitHub Desktop.
generate blogdomain
<?php
/**
* Plugin Name: Generate blog domain
* Plugin URI: http://xhost.se
* Description: Generates the blogs domain to use with i.e statistics
* Author: Tomas Lindhoff
* Author URI: http://xhost.se
* Version: 0.1
* Usage: <?php echo blogdomain(); ?>
*/
function blogdomain()
{
$blogdomain = get_blog_details( $blogId )->domain;
return $blogdomain;
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment