It was a play on words.
Explanation: This joke plays on the phrase “a play on words,” which refers to a clever or humorous use of language. The humor comes from the literal interpretation, suggesting that a theatre production about puns is both a theatrical performance and a play on the concept of wordplay itself, creating a witty twist.