Widgets (sidebars) (category)

dynamic_sidebar()

Displays the first active widget panel (sidebar - a panel that has at least one widget). You can specify the ID or number of the panel to display if there is more than one widget panel on the site.

is_active_sidebar()

Checks if the specified widget panel (area for widgets, sidebar) is used. It will trigger if there is at least one widget in the widget area. Conditional tag.

is_active_widget()

Defines whether the specified widget is displayed on the site (on the frontend). It gets the ID of the panel in which the widget is located.

is_dynamic_sidebar()

Defines whether the theme supports widgets and whether at least one sidebar has been added to the panel. Conditional tag.

is_registered_sidebar()

Checks if the specified widget area is registered.

register_sidebar()

Registers a widget panel (a place where widgets are placed in the admin panel to later display them on the front end).

register_sidebars()

Creates a specified number of widget areas (sidebars) and adds them to the system so that they can later be displayed using dynamic_sidebar().

register_widget()

Registers (creates) a widget.

the_widget()

Outputs a ready-made widget directly in the theme template, forming a complete HTML block taking into account the widget settings and wrappers.

unregister_sidebar()

Cancels the registration of a previously registered widget panel (sidebar).

unregister_widget()

Cancels the registration of a widget. Deletes the widget by the specified widget class name.

wp_get_sidebar()

Gets the data of the specified (registered) sidebar.

wp_get_sidebars_widgets()

Gets a list of all sidebars (widget panels) and a list of all widgets in those sidebars.

wp_register_sidebar_widget()

Registers a widget that can then be added to the widget panel (sidebar) in the admin panel.

wp_register_widget_control()

Registers a function responsible for displaying widget settings in the admin panel. Saving widget options occurs in this same function.

wp_unregister_sidebar_widget()

Unregisters (removes) a widget by its ID.

wp_widgets_init()

Registers all standard WordPress widgets on startup.