Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How I send the arguments to functions in a plugin?
#2
Try passing them as an array:
Code:
add_action('content-bottom','my_function',array($firstvariable,$secondvariable));
This should work.

If it still doesn’t, are any errors returns with debug mode on?
“Don’t forget the important ˚ (not °) on the a,” says the Unicode lover.
Help us test a key change for the core! ¶ Problems with GetSimple? Be sure to enable debug mode!
Reply


Messages In This Thread
How I send the arguments to functions in a plugin? - by Zegnåt - 2010-10-14, 20:16:26



Users browsing this thread: 1 Guest(s)