Yeah, I’ve been told that for custom themes, it’s good practice to include plugins in the lib directory so that theme is self-contained, with any dependent plugins specified. For example, we also have this line in libraries.php: require_once('lib/acf.php');
and corresponding acf directory and acf.php file there as well.
I already have Gutenberg installed as described above. This is just the company’s way of doing it and I’m trying to understand this use of libraries.php myself. We’re using the Sage WordPress starter theme.
-
This reply was modified 7 years, 2 months ago by Chris.