A new custom post type has a working single view and an archive that 404s, and it starts working the moment somebody opens Settings → Permalinks. The rewrite…
PSR-4 resolves a class by turning its namespace into a path, which requires the code to have namespaces and for the directory layout to agree with them. A…
woocommerce_thankyou reads like a completion event and is a page-render hook. The order-received page has an ordinary URL with the order key in it, so it is bookmarked,…
Testing code that reads and writes files usually ends in a tests/tmp directory, a setUp that creates it, a tearDown that recursively deletes it, and a suite that…
Everything under require is installed everywhere the project is installed, servers included. PHPUnit and the packages behind it are several dozen dependencies of code with no business existing…
The migrations table records a batch number rather than a position, and migrate:rollback unwinds the highest batch — which is every migration that ran in the last migrate…