From e09bd1cc290141204f20ccf046294f4ef1c8ff8b Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Wed, 14 Dec 2011 20:25:18 +0100 Subject: [PATCH] Add settings link on plugin page --- bubbles.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/bubbles.php b/bubbles.php index 4a2dc3c..ed01742 100644 --- a/bubbles.php +++ b/bubbles.php @@ -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 = ''. __('Settings') .''; + array_unshift($links, $settings_link); + return $links; +} + +$plugin = plugin_basename(__FILE__); +add_filter('plugin_action_links_'.$plugin, 'bubbles_settings_link' ); + ?> \ No newline at end of file