Creating a settings shortcut link

One of the problems encountered by users is that a plugin's settings may be difficult to locate. It's not immediately clear if a new menu item has been added when a user first activates a plugin. That's the problem we are going to solve by adding a Settings link that takes us to our plugin's administration page.

Creating a settings shortcut link

How did we do that? Well, it turns out that the information for each plugin is printed via a process that we can modify using a WordPress filter. The name of one of these secret filter hooks is plugin_action_links. How did we know that? Thanks to the nature of open-source code, we saw it used in Viper's Video ...

Get WordPress 3 Plugin Development Essentials now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.