[wp-hackers] Programatically retrieve settings page link?

Stephen Rider wp-hackers at striderweb.com
Sat Jun 14 14:12:01 GMT 2008


Thanks V -- that is indeed useful. :)

Stephen

On Jun 10, 2008, at 9:03 PM, Viper007Bond wrote:

> Global $menu and $submenu and print_r() them. It should become pretty
> obvious what's going on.
>
>>
> On Fri, Jun 6, 2008 at 11:10 PM, Stephen Rider <
>> wp-hackers at striderweb.com wrote:
>>
>> 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.


More information about the wp-hackers mailing list