Tagged Questions
0
votes
1answer
24 views
How to return hook data when multiple parameters are present?
What is the proper way of returning data to a hook when there is more than one parameter present?
Example
apply_filters('image_downsize', false, $attachment->ID, $size)
Attaching a callback ...
2
votes
1answer
41 views
How can one utilize a variable as a callback function name for add_settings_field
I'm trying to cut down on the amount of code that is in my theme options function. I'm adding my settings like so: add_settings_field($k,$v,$callback,$the_options,$the_group,$args);
This works for ...
0
votes
1answer
97 views
Where is this function's callback getting its arguments from?
This might be better suited to Stack Overflow, thought I'd try here first though.
I was walking through this tutorial by Justin Tadlock and encountered the function below being used as the callback ...