Skip to content

Instantly share code, notes, and snippets.

Created Aug 26, 2014
What would you like to do?
Code snippet to add a "Settings" link to your plugin on the plugins page
add_filter('plugin_action_links_'.plugin_basename(__FILE__), 'salcode_add_plugin_page_settings_link');
function salcode_add_plugin_page_settings_link( $links ) {
$links[] = '<a href="' .
admin_url( 'options-general.php?page=my-plugin' ) .
'">' . __('Settings') . '</a>';
return $links;
Copy link

shoaib-karim-ali commented Aug 11, 2021

Thank you for sharing this quick snippet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment