[wp-hackers] Programatically retrieve settings page link?

Stephen Rider wp-hackers at striderweb.com
Sat Jun 7 06:10:02 GMT 2008


Hi all --

Is there a way to automatically get a plugin page link, e.g. "options- 
general.php?page=myplugin.php"?

I'm adding a "Settings" link in the Plugins page.  At the moment I'm  
hard-coding it; I would prefer some sort of reusable code that figures  
the link out itself.

Setting $page = add_submenu_page... returns (in this case)  
'design_page_pull-quotes' which isn't going to work.

Any ideas?

Thanks,
Stephen

-- 
Stephen Rider
<http://striderweb.com/>





More information about the wp-hackers mailing list