Skip to content

Instantly share code, notes, and snippets.

@jasonbraun
Last active December 19, 2020 15:17
Show Gist options
  • Save jasonbraun/18f31105428d10611e9520799cb70765 to your computer and use it in GitHub Desktop.
Save jasonbraun/18f31105428d10611e9520799cb70765 to your computer and use it in GitHub Desktop.
Add theme info box into WordPress Dashboard
<?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