Hi everybody,
I'm developing my own plugin, and so far it works great.
I've added an add_menu_page() function and some add_submenu_page() functions to my plugin. In one of the submenus, I would like to set up a thickbox popup. Basically, the idea is: when you click a link on a submenu page, it opens the thickbox, which would load a little page into its iframe where you can set things.
I've managed to integrate wp's thickbox into the code, but I don't know how can I open a page in the thickbox's iframe that would work through wordpress (so I could use wp functions).
If I load a php from my plugin folder, that's an individual code, it wouldn't recognize wp functions, nor have head, or foot, etc.
If I load admin.php?page=myplugin, the whole wp admin panel loads into the iframe. I only want a customized code with some functions.
How could I solve this?
Thanks in advance :)