Skip to content

Instantly share code, notes, and snippets.

@birgire
Created December 27, 2015 17:43
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 birgire/7227e4fc1c6d34ffa7a7 to your computer and use it in GitHub Desktop.
Save birgire/7227e4fc1c6d34ffa7a7 to your computer and use it in GitHub Desktop.
Must Use WordPress Plugin - Print the clean basedomain in the admin footer
<?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