Widget controls

Widgets have a control panel that can be changed, for example, to add options for the widget.

Widget controls

WordPress also provides a mechanism to make your widget compatible with various themes. It does this by passing several parameters to your widget's callback function. These parameters include the necessary tags and CSS classes which we need to include in order not to 'break' the theme.