[Feature Request] Custom Dashboard Widgets
-
I would like to see the option to create custom dashboard widgets based on user roles.
An example would be x user with the role of editor logs in and there would be a custom Dashboard widget with information that is useful for them.
Here is the code I currently use to create my own dashboard widgets
function display_support_contact_widget() {
echo '<div class="welcome-widget-content">';
echo '<p>If you require support for this website please contact blabla</p>';
echo '</div>';
}
function add_support_contact_dashboard_widget() {
wp_add_dashboard_widget(
'support_contact_dashboard_widget',
'Support Contact',
'display_support_contact_widget'
);
}
add_action('wp_dashboard_setup', 'add_support_contact_dashboard_widget');
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- You must be logged in to reply to this topic.