Skip to content

Instantly share code, notes, and snippets.

@hlashbrooke
Created July 12, 2013 11:13
Show Gist options
  • Save hlashbrooke/5983673 to your computer and use it in GitHub Desktop.
Save hlashbrooke/5983673 to your computer and use it in GitHub Desktop.
WordPress: Add plugin settings link to plugins list table
<?php
function plugin_add_settings_link( $links ) {
$settings_link = '<a href="options-general.php?page=plugin_name">' . __( 'Settings' ) . '</a>';
array_push( $links, $settings_link );
return $links;
}
$plugin = plugin_basename( __FILE__ );
add_filter( "plugin_action_links_$plugin", 'plugin_add_settings_link' );
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment