Title: register_sidebar
Last modified: August 19, 2016

---

# register_sidebar

 *  Resolved [sepoto](https://wordpress.org/support/users/sepoto/)
 * (@sepoto)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/register_sidebar/)
 * I’m looking at this code from a sample on how to build an accordion menu. I am
   supposed to include this into my functions.php file. I think what it is doing
   is checking to see if the function register_sidebar exists and sending an array
   as a parameter. More importantly could someone elaborate on what the function
   is actually doing? I don’t understand this just yet.
 *     ```
       <?php
           if(function_exists('register_sidebar')){
               register_sidebar(array('name' => 'appleQuery'));
           }
       ?>
       ```
   

Viewing 1 replies (of 1 total)

 *  [stvwlf](https://wordpress.org/support/users/stvwlf/)
 * (@stvwlf)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/register_sidebar/#post-1938911)
 * [http://codex.wordpress.org/Function_Reference/register_sidebar](http://codex.wordpress.org/Function_Reference/register_sidebar)
 * [http://codex.wordpress.org/Function_Reference/register_sidebars](http://codex.wordpress.org/Function_Reference/register_sidebars)

Viewing 1 replies (of 1 total)

The topic ‘register_sidebar’ is closed to new replies.

 * 1 reply
 * 2 participants
 * Last reply from: [stvwlf](https://wordpress.org/support/users/stvwlf/)
 * Last activity: [15 years, 1 month ago](https://wordpress.org/support/topic/register_sidebar/#post-1938911)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
