Skip to content

Instantly share code, notes, and snippets.

@aliciaiceland
Created June 4, 2017 19:55
Show Gist options
  • Save aliciaiceland/85b859bb0a9640654f83a08c82b16710 to your computer and use it in GitHub Desktop.
Save aliciaiceland/85b859bb0a9640654f83a08c82b16710 to your computer and use it in GitHub Desktop.
Add Settings Link To Plugin Listing Page
add_filter( 'plugin_action_links_' . plugin_basename(__FILE__), 'myplugin_add_action_links' );
function myplugin_add_action_links ( $links ) {
$mylinks = array(
'<a href="' . admin_url( 'options-general.php?page=myplugin_settings' ) . '">Settings</a>',
);
return array_merge( $links, $mylinks );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment