Forums

CMSify
Doesn't hide all Widgets (2 posts)

  1. karyyyn
    Member
    Posted 9 months ago #

    Hi,

    First, great plugin!

    I would like to know if it's possible to hide ALL widgets, even the ones which are custom added when you install a new plugin. (Like NextGEN Widget or NextGEN Slideshow.) I would like to hide ALL widgets (I've got 10 of them which are not covered by CMSify...)

    Your plugin does the job for the default widgets built into WordPress, but what about the custom ones? Could you add a feature to hide ALL widgets? Just a nice little checkbox would do!

    If you can send me the code and where to add it, I don't mind adding it by hand.

    Thanks!

    http://wordpress.org/extend/plugins/cmsify/

  2. devbit
    Member
    Posted 8 months ago #

    Karyyyn, you can unregister a widget using the unregister_widget() function. You need to know the Class name used to extend the WP_Widget class from within that plugins code. I'm adding the ability to enter custom class names into the next release of the plugin, but the function seems to be a bit unreliable as I couldn't get some widgets to unregister no matter what.

    Cheers!

Reply

You must log in to post.

About this Plugin

About this Topic

Tags