Adding Multiple Widgets to dashboard
-
Hi,
How can one add Multiple widgets to the admin dashboard?
I have this:function dashboard_widget_first_function() {echo 'CONTENTS';} function add_dashboard_widgets() {wp_add_dashboard_widget('dashboard_widget_first', 'Widget Name', 'dashboard_widget_first_function');} add_action('wp_dashboard_setup', 'add_dashboard_widgets' );
[Please use the backticks or code buttons when posting code – thanks.]Which adds one (1) widget, I have tried duplicating etc (with different function names) but it seems to corrupt the script. Cheers!
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Adding Multiple Widgets to dashboard’ is closed to new replies.