• Widgets are great to give the user control over what goes in a sidebar.

    However in the case of plugins sometimes we need to get the code and control how/when its echo’d out.

    Therefore it would be great to have get_dynamic_sidebar that returns the string.

    The alternative would be a hook that is called after the user leaves the loop (somehow). The idea is that the plugin can run without requiring the user to update their templates. The benefits are

    1. User can use widgets to control the options without creating more submenus in the Settings section
    2. User doesn’t need to be familiar with editing templates
    3. User can change templates without worrying that they’ll lose functionality, create work etc
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘get_dynamic_sidebar function needed or perhaps a hook?’ is closed to new replies.