[wp-hackers] add_menu_page in 2.7RC1
Stephen Rider
wp-hackers at striderweb.com
Wed Dec 3 02:27:06 GMT 2008
Instead of __FILE__, you can use any arbitrary string. Try this:
add_menu_page(__('eShop','eshop'), __('eShop','eshop'), $eshoplevel,
'eshop', 'eshop_admin_orders_stats',WP_PLUGIN_URL.'/eshop/eshop.png');
On Dec 2, 2008, at 5:06 AM, Rich Pedley wrote:
> Currently I use the following, which seems to work well, to add a top
> level menu item:
>
> add_menu_page(__('eShop','eshop'), __('eShop','eshop'), $eshoplevel,
> __FILE__, 'eshop_admin_orders_stats',WP_PLUGIN_URL.'/eshop/
> eshop.png');
>
> However the link produced is like this:
> admin.php?page=eshop/eshop.php
--
Stephen Rider
<http://striderweb.com/>
More information about the wp-hackers
mailing list