Passing arguments to a admin menu page callback?
You can’t pass an argument to the callback function. add_menu_page() adds it as an action handler, and admin.php fires the action, without any arguments. I see two simple solutions to this problem. One is to store all filename in an array in your class, indexed by hook name. Then you can use this to look … Read more