The MU forums have moved to WordPress.org

Hide widgets (7 posts)

  1. AndrewGerssen
    Member
    Posted 14 years ago #

    I have a question, how can I hide widgets from Editors? With the old Wordpress you could use the function:

    unregister_widget_control ( string name )

    This function would de-activate the widget, which would be then hidden in every wordpress MU version < 2.7. With the new update the widgets would still be de-activated, but are placed under the header 'Inactive Widgets' and the Editor or blogger could then re-activate the widget.

    How can I make these widgets hidden again?

  2. AndrewGerssen
    Member
    Posted 14 years ago #

    Could someone look at this? Thnx!

  3. torre
    Member
    Posted 14 years ago #

  4. AndrewGerssen
    Member
    Posted 14 years ago #

    Thanks, but for me it doesn't solved the problem. The widgets are still shown in the inactive widgets bar, so users can just re-activate them again.

  5. cafespain
    Member
    Posted 14 years ago #

    You want to be using wp_unregister_sidebar_widget not just unregister_widget_control

  6. AndrewGerssen
    Member
    Posted 14 years ago #

    thnx will try!

  7. AndrewGerssen
    Member
    Posted 14 years ago #

    same results, in the admin panel, users can still re-activate the widgets from the 'Inactive Widgets' bar and default widgets are shown as both Inactive as Active.

About this Topic

  • Started 14 years ago by AndrewGerssen
  • Latest reply from AndrewGerssen