wpseek.com
A WordPress-centric search engine for devs and theme authors
wp_get_sidebar › WordPress Function
Since5.9.0
Deprecatedn/a
› wp_get_sidebar ( $id )
Parameters: |
|
Returns: |
|
Defined at: |
|
Codex: |
Retrieves the registered sidebar with the given ID.
Related Functions: get_sidebar, wp_get_sites, wp_find_widgets_sidebar, wp_get_sidebars_widgets, wp_get_split_term
Source
function wp_get_sidebar( $id ) { global $wp_registered_sidebars; foreach ( (array) $wp_registered_sidebars as $sidebar ) { if ( $sidebar['id'] === $id ) { return $sidebar; } } if ( 'wp_inactive_widgets' === $id ) { return array( 'id' => 'wp_inactive_widgets', 'name' => __( 'Inactive widgets' ), ); } return null; }