Title: Modify before_widget parameter
Last modified: August 18, 2016

---

# Modify before_widget parameter

 *  [archeoit](https://wordpress.org/support/users/archeoit/)
 * (@archeoit)
 * [18 years, 8 months ago](https://wordpress.org/support/topic/modify-before_widget-parameter/)
 * I’ve made a plugin and when i register it
 * `register_sidebar_widget('Example', 'widget_Example');`
 * on the frontend side i obtain the following:
 *     ```
       <div id="Example" class="widget_style">
       PLUGIN CONTENT
       </div>
       ```
   
 * I know that ID and CLASS (into DIV) are assigned with before_widget instance,
   but i’d like to know if it’s possible to define, inside the plugin code, the 
   value of ID tag.
 * I’d like to have this
 *     ```
       <div id="WHAT I WANT HERE" class="widget_style">
       PLUGIN CONTENT
       </div>
       ```
   
 * Is it possible?
    thanks

Viewing 1 replies (of 1 total)

 *  [Adam Brown](https://wordpress.org/support/users/adamrbrown/)
 * (@adamrbrown)
 * [18 years, 7 months ago](https://wordpress.org/support/topic/modify-before_widget-parameter/#post-631072)
 * An easier way: Have your plugin create a nested div with a custom ID.
 *     ```
       <div id="Example"...>
          <div id="your plugin prints this div"
          additional plugin content
          </div>
       </div>
       ```
   

Viewing 1 replies (of 1 total)

The topic ‘Modify before_widget parameter’ is closed to new replies.

## Tags

 * [before_widget](https://wordpress.org/support/topic-tag/before_widget/)
 * [widget plugin](https://wordpress.org/support/topic-tag/widget-plugin/)

 * In: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
 * 1 reply
 * 2 participants
 * Last reply from: [Adam Brown](https://wordpress.org/support/users/adamrbrown/)
 * Last activity: [18 years, 7 months ago](https://wordpress.org/support/topic/modify-before_widget-parameter/#post-631072)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
