Accessing array-defined action
-
Hello,
In a plugin file there is an action defined as follows. It contains a parameter of type array as you can see:do_action('vse_da_update',$id,$data[$rkey],$status);
I’m trying to handle this by reaching it in function.php. However, I cannot reach it. am i making a mistake? Is the parameter as an array being accessed in a different way?
add_action('vse_da_update', 'new_vse_da_update', 10, 2); function new_vse_da_update ($id, $data){ $new_value[$id] = $data[$rkey]; }
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Accessing array-defined action’ is closed to new replies.