Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@kovshenin
Created July 16, 2011 12:36
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 kovshenin/1086313 to your computer and use it in GitHub Desktop.
Save kovshenin/1086313 to your computer and use it in GitHub Desktop.
WordPress Dashboard Feed Reader
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>";
}
@Ramoonus
Copy link

why are there 4 files?

@kovshenin
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment