Most WordPress developers are familiar with using add_action, but as you may have discovered the information on passing arguments to your callback function is hard to find. After a couple of hours of Googling, throwing a hissy fit, and good old trial and error I found a working solution, so I thought I’d share.

