Hello people,
I have a question about add_meta_box. Is there any way I can pass some arguments to the callback function. Here's what I mean:
function my_callback ($parameter1, $parameter2) {
echo $parameter1;
echo $parameter2;
}
function add_my_meta_box() {
$var1 = "Blabla";
$var2 = "Something"
add_meta_box($id, $title, my_callback (<< Those 2 vars should be passed to this function), $page, $context, $priority);
}
Is there any way to do this? I would rather not use $_SESSION values.
Thnx!