[wp-hackers] Detecting which action ran function
alex at buayacorp.com
Fri Aug 12 15:01:42 UTC 2011
On Fri, Aug 12, 2011 at 4:36 PM, Robert Lusby <nanogwp at gmail.com> wrote:
> I have a function that is called from a number of different actions.
> The function does essentially the same, except for one small difference on
> output depending which action triggered it.
> How do you detect which WP action has called the function?
I guess it is not possible to determine which action called the
function. Anyways, don't you think it would be better to use an
additional parameter in your function to do the same thing?
More information about the wp-hackers