Yes, see: http://codex.ww.wp.xz.cn/Dashboard_Widgets_API
In v4.5 you’ll have an option for that.
Thread Starter
David
(@sechsdrei)
Hello Alin,
thank you for your fast reply! I missed to say that I would like to remove the sidebar widget like for example:
function unregister_default_wp_widgets() {
unregister_widget('WP_Widget_Calendar');
unregister_widget('WP_Widget_Tag_Cloud');
}
add_action('widgets_init', 'unregister_default_wp_widgets', 1);
The dashboard widget should stay in this case 🙂
Thanks,
David
Just remove it from from Appearance -> Widgets, or do you want to implement some sort of conditional displaying?
Thread Starter
David
(@sechsdrei)
I would like to remove or unregister the widget completely in this case.
Iam not using the widget in the sidebar at the moment. i just don’t want it to appear there for my client, he shouldnt be able to implement this into his sidebar.
Best,
David