public
Last active

WordPress Dashboard Feed Reader

  • Download Gist
gistfile1.php
PHP
1 2 3 4 5 6 7
add_action( 'wp_dashboard_setup', 'my_dashboard_setup' );
function my_dashboard_setup() {
wp_add_dashboard_widget('themefm-dashboard-reader', 'Latest from Theme.fm' , 'my_dashboard_content', $control_callback = null);
}
function my_dashboard_content() {
echo "<p>Dashboard Widget Content</p>";
}

why are there 4 files?

Ramoonus, because they're embedded separately in the tutorial on Inspired Magazine :)

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.