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_parse_widget_id, wp_list_widget_controls_dynamic_sidebar, wp_ajax_widgets_order, _get_widget_id_base

Top Google Results

User discussions

wpseek mobile