This is a short tutorial for WordPress plugin developers. If you are a WordPress plugin developer and would like to add a settings link similar to the image below beside the activate and deactivate link on the plugins page then just add the below code to your plugin.
add_filter("plugin_action_links_" . plugin_basename(__FILE__), 'xt_plugin_settings_link' ); function xt_plugin_settings_link($links) { $settings_link = '<a href="options-general.php?page=your_plugin_settings_page">Settings</a>'; array_unshift($links, $settings_link); return $links; }
Do not forget to change the your_plugin_settings_page in the code to your own plugin’s settings page link.
I am the founder and developer at TECHXT. Over the decade I have helped hundreds build their own site. All plugins I develop are made have a common goal: Make it as simple as possible and as easy to use as possible.
Sudipto
Do you like this article?