[wp-hackers] What Should A Plugin Author Do To Make Plugins Extensible?
Andrew Nacin
wp at andrewnacin.com
Mon Aug 30 21:04:10 UTC 2010
On Mon, Aug 30, 2010 at 4:57 PM, Jeremy Clarke <jer at simianuprising.com>wrote:
> On Mon, Aug 30, 2010 at 12:12 AM, Andrew Nacin <wp at andrewnacin.com> wrote:
>
> >
> > - Wrap functions in function_exists(). Not necessary for functions
> > attached
> > to hooks as those can be removed, or those where overriding them makes
> > little sense (unless you want to be sure there are no conflicts... It's
> > good
> > practice).
> >
> > - Include actions and filters of your own.
> >
> >
> And *mention the new actions/filters/pluggable-functions that you've added
> in your plugin description*. If you don't mention them then developers
> won't
> know they are there and will be less likely to choose your plugin because
> they don't realize that you're doing extra work to make their lives easier.
>
> IMHO this even applies to template tags and helper functions. I think a lot
> more functions from plugins are worth mentioning on the plugin page and
> treating as a kind of API. If nothing else it would encourage plugin devs
> to
> think of their functions as an API rather than something only they use,
> which might increase usability for others.
Good points. Another idea might be to offer template tags as hooks as well.
[1]
[1]
http://www.andrewnacin.com/2010/05/18/rethinking-template-tags-in-plugins/
More information about the wp-hackers
mailing list