add_action & function values
-
I know this has been covered time and again, but most of the threads are closed or come close to my question without a definitive answer.
I understand add_action. At least the first 3 params of the add_action call itself. What I am not understanding is how the 4th param translates into actual values passed to the named function. Say I have a function called liquid_rain that takes 3 parameters.
function liquid_rain($param1, $param2, $param3) { // Do something with the params. }
From a random plug-in or my theme functions.php file I have the following line:
add_action('save_post','liquid_rain', 8, 3)
How does add_action(x,x,x,3) translate into the actual param values for liquid_rain? Simply calling the function through add_action does not (it appears) assign the required values. Further more, what if the values for liquid_rain come from a source other than a form. Say – as a reaction to a conditional.
- The topic ‘add_action & function values’ is closed to new replies.