can I do something like that? to pass arguments to my function? I already studied add_action doc but did not figure out how to do it. What the exact syntax to pass two argum
I ran into the same issue and solved it by using global variables. Like so:
global $myvar; $myvar = value; add_action('hook', 'myfunction'); function myfunction() { global $myvar; }
A bit sloppy but it works.