Posted on June 12, 2010 - by webmaster
New Wordpress 3.0 API menu_page_url
Peter Westwood one of the lead developers of wordpress has introduced a new API method in wordpress 3.0 api which will help the plugin developers easily get the url of the plugin page.
Example of implementation:
add_options_page('Best Evar Menu', 'Best Evar Menu', 'manage_options', 'best_evar_menu', 'best_evar_options_page');
menu_page_url( 'best_evar_menu' );
The function will by default echo the url out but if you want you can get it returned for processing by setting the second argument to false.
Reference: WP Track #13829
This entry was posted on Saturday, June 12th, 2010 at 07:50 and is filed under Programming. You can follow any responses to this entry through the RSS 2.0 feed.
You can leave a response, or trackback from your own site.

Visit My Website
June 21, 2010
Permalink
Great
I will try it today.