Autoload post-types/*.php

I’m wondering how to autoload files generated by wp-cli scaffold command. I’m trying to autload post-types/product.php. I’ve moved the folder do app location, added namspace App at the top and did composer dump-autoload. This doesnt work for me. Any ideas ?

This thread should address your issue: Sage 9 PSR-4 - Not loading or instantiating classes

1 Like