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?
AndrewGerssen
Member
Posted 14 years ago #
Could someone look at this? Thnx!
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.
cafespain
Member
Posted 14 years ago #
You want to be using wp_unregister_sidebar_widget not just unregister_widget_control
AndrewGerssen
Member
Posted 14 years ago #
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.