In the software world, we often write software that interfaces with other software. Let's assume I wrote program A, and it interfaces with program B that John wrote. When communicating with John about the interface, I might say something like: "When program A sends message X, you respond with Y". Or even: "When I send message X, you respond with Y".
Obviously, I am not sending these messages, and John is not responding - program A is sending to program B. It's just often easier/less verbose to basically substitute the author in place of their work.
What is this called? I looked at the definition of metonymy, and synecdoche, but neither seems quite right.
Yeats is still widely read
". I thought this would have a much fancier name, but the definition is perfect. Please add that as an answer. Sorry I missed your comment till now.