Is it possible to remove/add widgets from/to the Available Widgets pool (either by plugin or editing core files)?
There are 3 widget files located at:
/wp-includes/widgets.php
/wp-admin/widgets.php
/wp-admin/includes/widgets.php
I have tried to change both the code and the widget variables but nothing happened.
thanks
You can use the function
unregister_widget
to remove widgets.E.g. you can remove the Calendar widget with:
To add widgets, use the
Widgets API
.