Created
December 27, 2015 17:43
-
-
Save birgire/7227e4fc1c6d34ffa7a7 to your computer and use it in GitHub Desktop.
Must Use WordPress Plugin - Print the clean basedomain in the admin footer
This file contains hidden or 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 | |
/** | |
* Print the clean basedomain in the admin footer | |
* | |
* Place the file under /wp-content/mu-plugins/wpse.php | |
* | |
* @uses get_clean_basedomain() | |
*/ | |
add_action( 'in_admin_footer', function(){ | |
if( function_exists( 'get_clean_basedomain' ) ) | |
printf( '<p>Clean Base Domain: %s</p>', get_clean_basedomain() ); | |
} ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment