Core Function
View Source on Trac ↗ wp_find_widgets_sidebar()
wp_find_widgets_sidebar( mixed $widget_id ) Finds the sidebar that a given widget belongs to.
Parameters 1 required
| Name / Type | Description |
|---|---|
| $widget_id string | The widget ID to look for. Required |
Return Value
((string)
| null) The found sidebar's ID, or null if it was not found.
Function Information
Since Version
5.8.0
Source File
wp-includes/widgets.php
Advertisement