Category: Stripe
-
How to make WordPress return an arbitrary file on a specific request
Sometimes implementing a feature requires placing a specific file at a specific path. An example is integrating Apple Pay via Stripe – it requires the site to respond to a /.well-known/apple-developer-merchantid-domain-association request with a particular file, for verification. Sure the file can just be put on server root, but what if we’re writing a plugin?