WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
Maybe he means the "Settings" link that some pluings have in the plugins list? – Zack Feb 3 '11 at 18:58
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
up vote 3 down vote accepted

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

This would be one approach.

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


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 '15 at 21:55

Your Answer


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.