-
-
Save anonymous/913d4e7360658b2c9166 to your computer and use it in GitHub Desktop.
generate blogdomain
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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