How to add settings page link on the plugins page

If you’re developing a WordPress plugin, you might be interested in adding a link to your “Settings” page for the plugin on the plugins page. This will help your plugin users to navigate to settings page easily.

Add settings page link in WP plugin

This is really easy! Just add the following lines of codes on your plugins php file.

Select Code
1
2
3
4
5
6
7
function wp_schools_settings_link( $links )
{
$links[] = '<a href="your-settings-page-link">Settings</a>';
return $links;
}

add_filter( 'plugin_action_links_' . plugin_basename(__FILE__), 'wp_schools_settings_link' );

Don’t forget to change “your-settings-page-link” with your actual settings page link!

Happy WordPressing!

Leave a Reply

%d bloggers like this: