So, I've got a hook declared already, I'm trying to add a function call to that hook, and pass a variable:
add_action('wp_hook_sidebar', 'displayAd($passedtext)');
then i've got the function:
function displayAd($passedText)
{
echo $passedText;
}
The text doesn't get passed to the function though. I know that's not the way it works based on a couple of previous threads I found:
http://wordpress.org/support/topic/155337
and
http://wordpress.org/support/topic/166587
But, neither of those threads provide an answer. Anybody got a clue how I can get that variable passed? This is driving me nuts