WordPress.org

Ready to get started?Download WordPress

Forums

Register_sidebar wipes existing widget setup (1 post)

  1. .sarah.
    Member
    Posted 3 years ago #

    We've just added a plugin to a couple of WP sites (3.01 and older WPMU).

    The plugin use the 'setup_theme' hook to registers a sidebar and the sidebar is given both a name and an id.

    add_action('setup_theme', 'mm_add_sidebar');

    We have found in every instance that the previous setup is wiped clean and the user has to start from scratch.

    Anything we should be looking for? The code we've added isn't tricky or complicated.

Topic Closed

This topic has been closed to new replies.

About this Topic