WordPress.org

Ready to get started?Download WordPress

Ideas

Add an optional capability to register_sidebar() for multiple editors in CMS

  1. Andy Macaulay-Brook
    Member

    12345

    If register_sidebar() had a parameter for a capability and these registered capabilities were checked during rendering of /wp-admin/widgets.php, it would be possible to allow editing of certain sidebars only to certain users - great for a site with several people responsible for editing different areas.

    Personally, I'd use this by setting up some sidebars as admin user only to help me build a client's site, but happily let them have access to other sidebars of text widgets (for example).

    I tried writing a plugin to do this and it all goes well until you try to change the sidebars that your user can see. Then the AJAX triggers retrieve_widgets() and all your hidden sidebars get deregistered and emptied into the inactive widgets holder :-(

    So I guess I don't just want the capability parameter, but for /wp-admin/widgets.php to not mess it up.

    Posted: 4 years ago #

RSS feed for this topic

Reply

You must log in to post.

  • Rating

    12345
    6 Votes
  • Status

    This is plugin territory