[wp-hackers] Prevent display of dynamic sidebar in widgets.php

Andy Charrington-Wilden andycharrington at gmail.com
Sun May 15 16:55:03 UTC 2011


Hi Nacin

Thanks for the response. I'm not sure what you mean though. Could you please elaborate a little?

I am successfully emulating the widgets page functionality in my plugin to allow assigning of widgets to sidebars. 

I'm not sure how using the widget call would work? 

Thanks!

Sent from my iPhone

On 15 May 2011, at 17:25, Andrew Nacin <wp at andrewnacin.com> wrote:

> On May 14, 2011 4:24 PM, "Andy Charrington-Wilden" <
> andycharrington at gmail.com> wrote:
>> 
>> Hi all
>> 
>> I am trying to find a way to exclude a dynamic sidebar from the default
> widgets page (widgets.php) in wp-admin. I know it sounds crazy but I am
> using dynamic sidebars as part of a plugin and as such don't want the user
> to be able to assign widgets to the sidebars my plugin creates.
>> 
>> Does that makes sense? I hope so!
>> 
>> I haven't found any hooks I can use, so am wondering if the only option is
> to use CSS to hide the sidebar in widgets.php. Not the ideal solution to be
> honest so was hoping someone here had some bright ideas!
> 
> Instead of leveraging dynamic_side ar() maybe your plugin should just call
> the_widget(). There isn't an API for assigning widgets to sidebars anyway.
> 
> Nacin
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers


More information about the wp-hackers mailing list