Calling plugin from functions.php
-
How do I run plugin using functions.php instead of putting it into plugins folder?
Code below works for some plugins:
require_once (TEMPLATEPATH . '/includes/some/path/to/plugin/plugin.php');
but if I try to load plugins with multiple php files it causes error.I just want to move all the plugins to theme directory and make them load automatically when the theme is loaded.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘Calling plugin from functions.php’ is closed to new replies.