N
N
nektobit2017-09-07 02:35:59
WordPress
nektobit, 2017-09-07 02:35:59

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

1 answer(s)
A
Alexander Pushkarev, 2017-09-07
@AXP-dev

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 question

Ask a Question

731 491 924 answers to any question