wp_find_widgets_sidebar
wp_find_widgets_sidebar ( $widget_id )
Parameters:- (string) widget_id The widget ID to look for.
Returns:- (string|null) The found sidebar's ID, or null if it was not found.
Defined at: - Introduced in WordPress: 5.8.0
- Deprecated in WordPress: —
Description
Finds the sidebar that a given widget belongs to.