Posted By

coryschadt on 04/05/11


Tagged

wordpress


Versions (?)

Wordpress - Custom Dashboard Widget


 / Published in: PHP
 

  1. // example custom dashboard widget
  2. function custom_dashboard_widget() {
  3. echo "<p>Hello World</p>";
  4. }
  5. function add_custom_dashboard_widget() {
  6. wp_add_dashboard_widget('custom_dashboard_widget', 'Some text exaplining things', 'custom_dashboard_widget');
  7. }
  8. add_action('wp_dashboard_setup', 'add_custom_dashboard_widget');

Report this snippet  

You need to login to post a comment.