Answer the question
In order to leave comments, you need to log in
Why does WC use both class autoloading and including files via include_once?
If you look at the WC code, you can see that files (including classes) are included in the main plugin file. Isn't that the task of the autoloader? Why are these two class connection methods combined?
Answer the question
In order to leave comments, you need to log in
There are no non-spaces in WC. Therefore, the connection through include_once. Maybe someday WP will be rewritten for autoload out of the box. Now it's just crutches
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question