Re: add_action not running when do_action is called
I tried that but still no luck. (BTW – aren’t the last two parameters optional? Or is it only optional if the number of variables passed is 1?)
What else could I be missing?? the add_action just doesn’t seem to be getting included in the list of actions to run when the do_action is executed.
I also tried adding:
global $group_obj->id, $forum_post;
as the first line of the function. (grabbing at straws). nothing. But if a directly call my function by adding a line below the do_action line, it works great.