can I pass arguments to my function through add_action?

后端 未结 13 2111
慢半拍i
慢半拍i 2020-11-29 01:07

can I do something like that? to pass arguments to my function? I already studied add_action doc but did not figure out how to do it. What the exact syntax to pass two argum

13条回答
  •  有刺的猬
    2020-11-29 01:25

    I've wrote wordpress plugin long time ago, but I went to Wordpress Codex and I think that's possible: http://codex.wordpress.org/Function_Reference/add_action

     
    

    I think you should pass them as an array. Look under examples "take arguments".

    Bye

提交回复
热议问题