Last active
October 6, 2017 10:46
-
-
Save cubehrends/d9b4b0c2c4ef2d5dd60b131db1a8ded0 to your computer and use it in GitHub Desktop.
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 | |
function wdt_dashboard_widget_content() { | |
echo '<h3>Images</h3> | |
<ul> | |
<li>Featured 1080×608px</li> | |
<li>Person 600×600px</li> | |
<li>Sponsor Logo 400×200px</li> | |
</ul>'; | |
echo '<h3>Colors</h3> | |
<ul> | |
<li>Primary (blue) #0274be</li> | |
<li>Secondary (violet) #be0274</li> | |
</ul>'; | |
echo '<hr> | |
<p> | |
Contact <a href="https://webdevtrust.com">webdevtrust</a> for support | |
<p>'; | |
} | |
function add_dashboard_widgets() { | |
wp_add_dashboard_widget( | |
'wdt_dashboard_widget', // slug. | |
'<img src="' . get_stylesheet_directory_uri() . '/img/logo-dashboard.png">', // title. | |
'wdt_dashboard_widget_content' // function. | |
); | |
} | |
add_action( 'wp_dashboard_setup', 'add_dashboard_widgets' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment