php – Find variables available at a given hook
Question
I’m hoping for a simple way to tell/find/echo what the available arguments are available for use at a given hook.
For example —
function example_function($something){
//do stuff with $something
return $something;
}
add_action('some_hook','example_function');
In the above case, is there a quick way to tell what $something
is (if there is one at all), or if there are multiple $somethings
/ arguments I have available to use at that point?
0
9 months
2022-05-04T21:51:50-05:00
2022-05-04T21:51:50-05:00 0 Answers
0 views
0
Leave an answer