Wordpress - Custom Dashboard Widget


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.