wp_assign_widget_to_sidebar


wp_assign_widget_to_sidebar ( $widget_id, $sidebar_id )

Parameters:
  • (string) widget_id The widget ID to assign.
  • (string) sidebar_id The sidebar ID to assign to. If empty, the widget won't be added to any sidebar.
Defined at:

Description

Assigns a widget to the given sidebar.

Related Functions

wp_find_widgets_sidebar, wp_get_sidebar, wp_parse_widget_id, wp_list_widget_controls_dynamic_sidebar, wp_ajax_widgets_order

Top Google Results

User discussions

wpseek mobile