1
0
mirror of https://github.com/kremalicious/Badged.git synced 2024-12-28 07:37:43 +01:00

Add settings link on plugin page

git-svn-id: http://plugins.svn.wordpress.org/badged/trunk@476937 b8457f37-d9ea-0310-8a92-e5e31aec5664
This commit is contained in:
kremalicious 2011-12-17 21:09:51 +00:00
parent 86fa8c41fb
commit 145c642e5d

View File

@ -62,4 +62,15 @@ if ( is_admin() ) {
register_activation_hook(__FILE__, 'bubbles_activation');
// Add settings link on plugin page
function bubbles_settings_link($links) {
$settings_link = '<a href="options-general.php?page=bubbles_settings">'. __('Settings') .'</a>';
array_unshift($links, $settings_link);
return $links;
}
$plugin = plugin_basename(__FILE__);
add_filter('plugin_action_links_'.$plugin, 'bubbles_settings_link' );
?>