[wp-hackers] Programmatic Widget Handling
Peter Westwood
peter.westwood at ftwr.co.uk
Wed Oct 20 15:54:13 UTC 2010
On 20 Oct 2010, at 16:48, Jeremy Clarke wrote:
> On Tue, Oct 19, 2010 at 5:04 AM, Peter Westwood
> <peter.westwood at ftwr.co.uk>wrote:
>
>> It sounds like what you need is a comprehensive widget management api!
>>
>> The best way to get this is to work through the current widget code in
>> wp-admin/widgets.php and try and abstract it out into an api which that code
>> can use and your plugin can use.
>>
>> Submit this as a core patch and once it is included you will have an api to
>> base your plugin on.
>>
>>
> +1
>
> WP needs this badly. Among other automation-related uses it would be great
> if themes could define initial widgets for their widget zones in
> functions.php rather than having hard-coded alternate content (which
> confuses users who go to Appearance > Widgets and see nothing there to
> explain what's already visible on the site).
Yes please!
--
Peter Westwood
http://blog.ftwr.co.uk | http://westi.wordpress.com
C53C F8FC 8796 8508 88D6 C950 54F4 5DCD A834 01C5
More information about the wp-hackers
mailing list