[wp-hackers] Improving Plugin (and Theme) metadata
Jennifer Hodgdon
yahgrp at poplarware.com
Thu Jan 24 23:11:19 GMT 2008
I say: +1 on Westi's suggestion, reluctantly, since I like having just
one plugin file with all the info at the top.
However, since I didn't fully understand what Ryan was talking about
in his latest comment on the Trac ticket, Ryan -- does this satisfy
your concerns?
http://trac.wordpress.org/ticket/3089#comment:20
--Jennifer
ps: One correction to your solution is that you need to call
__('text','domain') in the plugin metadata file. Also, the other
submitted patch to that ticket also gettexted the URL, author name, etc.
Peter Westwood wrote:
> Possible Solution:
>
> 1. Plugins have to be stored within a folder under PLUGINDIR.
> 2. All plugins have a metadata.php file.
> 3. metadata.php file is included by the admin plugin page (not in global
> scope to keep it clean) as a way of discovering the available plugins.
>
> Example metadata.php file:
>
> <?php
>
> load_plugin_textdomain();
>
> register_plugin( plugin_filename.php,
> ~ __('Description'),
> ~ __('Plugin Name'),
> ~ 'http://example.com',
> ~ 'Joe Bloggs',
> ~ 'http://joe.bloggs.name'),);
>
> //The End
--
Jennifer Hodgdon
Poplar ProductivityWare * www.poplarware.com
Web Databases/Scripts * Modeling/Analysis/Palm OS Software
More information about the wp-hackers
mailing list