• 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)
  • 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.