[wp-hackers] how to integrate plugins into theme easily
wp-hackers at striderweb.com
Fri Jun 5 12:39:55 GMT 2009
That's kind of a broad question -- depends on what your plugin does.
Standard themes have hooks in them that you can use -- look at the
comments section for an example. Go through the default theme and
look for things that say do_action() or apply_filter() -- you can
attach actions that happen when the theme executes those.
However, you can't depend on those completely -- remember that a
poorly designed (or very custom) theme might not have all the same
On Jun 5, 2009, at 7:12 AM, Mayur Somani wrote:
> Yes, I know that and I have figured a few things by reading the
> sources. But
> still I am looking for a definitive answer from people who have been
> On Fri, Jun 5, 2009 at 5:40 PM, Casey Bisson
> <casey.bisson at gmail.com> wrote:
>> A number of themes include code for special widgets and other custom
>> functionality in their functions.php file.
>> On Jun 5, 2009, at 8:00 AM, Mayur Somani wrote:
>>> How can I integrate any plugin into the theme itself so that I
>>> don't have to
>>> ask the end user to install it.
More information about the wp-hackers