Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Currently, in my plugin description, I'm hardcoding...

To customize options <a href="options-general.php?page=my-plugin-admin.php">click here</a>

Is there a dynamic method to call the plugin options page?

share|improve this question
    
@Scott B: - I may be drawing a blank, but my answer is "No"... –  MikeSchinkel Feb 3 '11 at 18:23
1  
Maybe he means the "Settings" link that some pluings have in the plugins list? –  Zack Feb 3 '11 at 18:58
3  
Are you talking about something like this? wpengineer.com/1295/meta-links-for-wordpress-plugins –  t31os Feb 3 '11 at 19:03
    
@Zack & @t310s: YES! Please make it an answer so I can give credit :) –  Scott B Feb 3 '11 at 19:17
    
If he doesn't make it an answer, I'll go ahead and make the answer. Want to give him time to post it since he provided the actual answer. –  Zack Feb 3 '11 at 19:26

2 Answers 2

up vote 3 down vote accepted

You're looking for a plugin settings link that's dynamically generated.

This would be one approach.
http://wpengineer.com/1295/meta-links-for-wordpress-plugins/

share|improve this answer
    
To be honest, i wouldn't actually suggest the file name as the handle for a plugin(though i'm not suggesting it's wrong), it was just the first decent example i found with a quick google. I'll add my own example in due course.. –  t31os Feb 4 '11 at 0:14

This is the best way I know to do it from code

http://salferrarello.com/wordpress-plugin-add-settings-link/

share|improve this answer
    
Link only answers are a bad habit to get into. What if the link dies or the website goes down? If something like that happens it will render this answer useless. Better to use the code in the website and bring it over here, then give credit where credit is due by linking to where you found it. You can click the Edit button underneath your answer to add your code. –  Howdy_McGee Jan 20 at 21:55

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.