I have a question concerning the function add_menu_page(page_title, menu_title, access_level/capability, file, [function], [icon_url]); .
Well it seems that the function doesn't work without the [function] parameter, which should be variable.
When you just want to include a option page like :
add_options_page('MyPlugin', 'MyPluginSettings', 10, 'wp-myplugin/myplugin-options.php') ;
it returns the following link in the admin:
http://mydomain.com/wp-admin/wp-myplugin/myplugin-options.php
which should return:
http://mydomain.com/wp-admin/options-general.php?page=wp-myplugin/myplugin-options.php
Can you guys help me, there are a lot of plugins which use the method of including an option file rather than calling a function. Which simply means that I would/must re-program all plugins....