I have a generic question that I would like to ask.
How do we go about creating an extendable wordpress plugin. I would like to create a plugin that I can easily allow new extensions to be hooked up to it.
Does anyone have any tips or guides or tutorials to doing this?
The following:
tomjn_twittercount
is a better function name thantwittercount
I’d suggest using PHPDoc inline documentation extensively. It’ll allow you to auto-generate documentation using PHP Documentor
e.g.
It is about creating custom hooks. The main ways is by using
apply_filters()
anddo_action()
.More detailed explanations is here https://developer.wordpress.org/plugins/hooks/creating-custom-hooks/