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
Pass in vars from the local scope FIRST, then pass the fn SECOND:
fn
$fn = function() use($pollId){ echo "NO POLLS FOUND FOR POLL ID $pollId"; }; add_action('admin_notices', $fn);
NO POLLS FOUND FOR POLL ID $pollId