[wp-hackers] add filter to action to replace sidebar areas on the widgets page?
Danny G Smith
dgs at riskiii.com
Fri Sep 10 01:02:08 UTC 2010
At this point, I don't care about being elegant. Thanks, I will give it a try.
thanks,
Danny
On Sep 9, 2010, at 7:56 PM, Mike Schinkel <mikeschinkel at newclarity.net> wrote:
> Hey Danny,
>
> It's not super elegant but you could try something like this:
>
> add_action('widgets_admin_page','start_buffering_widgets');
> function start_buffering_widgets() {
> ob_start();
> }
> add_action('sidebar_admin_page','stop_buffering_widgets');
> function stop_buffering_widgets() {
> $widgets = ob_get_clean();
> // Do your HTML surgery on $widgets here
> echo $widgets;
> }
>
> Hope this helps.
>
> -Mike
>
>
> On Sep 9, 2010, at 5:41 PM, Danny G Smith wrote:
>
>> I am working on a website that has an insane amount of sidebar areas, and the page just goes on and on forever. I would like to be able to write a be able to modify the loop at line 387 in wp-admin/widgets.php to use two columns. I am not sure if there is a way filter an action or do this without modifying the core code, which I don't want to do. Any help would be appreciated.
>>
>> thanks,
>> Danny
>> _______________________________________________
>> wp-hackers mailing list
>> wp-hackers at lists.automattic.com
>> http://lists.automattic.com/mailman/listinfo/wp-hackers
>
> _______________________________________________
> 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