[wp-hackers] how to integrate plugins into theme easily

Chris Scott cjscott69 at gmail.com
Fri Jun 5 12:38:53 GMT 2009


On Fri, Jun 5, 2009 at 8:00 AM, Mayur Somani<somani.mayur at gmail.com> 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.
> Thanks.

You can do something like this:

- Create a "plugins" directory in your theme directory.
- Copy the plugins to that directory.
- In your theme's functions.php do a require_once() for each plugin's
main file you want to enable.

Note that if you do this, users won't be able to disable the plugins
in the Plugins admin panel--they won't see them at all there.

--
Chris Scott
http://iamzed.com/
http://hailtheale.com/

> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>


More information about the wp-hackers mailing list