Last active
December 19, 2020 15:17
-
-
Save jasonbraun/18f31105428d10611e9520799cb70765 to your computer and use it in GitHub Desktop.
Add theme info box into WordPress Dashboard
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 | |
//* Add theme info box into WordPress Dashboard | |
add_action('wp_dashboard_setup', 'website_name_add_dashboard_widgets' ); | |
function website_name_add_dashboard_widgets() { | |
wp_add_dashboard_widget('wp_dashboard_widget', 'Theme Details', 'website_name_theme_info'); | |
} | |
function website_name_theme_info() { | |
echo "<ul> | |
<li><strong>Developed By:</strong> Braun Design Co</li> | |
<li><strong>Website:</strong> <a href='http://braundesign.co'>braundesign.co</a></li> | |
<li><strong>Contact:</strong> <a href='mailto:[email protected]'>[email protected]</a></li> | |
</ul>"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment