1
0
mirror of https://github.com/kremalicious/Badged.git synced 2024-12-29 08:07:44 +01:00

Add settings link on plugin page

This commit is contained in:
Matthias Kretschmann 2011-12-14 20:25:18 +01:00
parent 77ae6e50ad
commit e09bd1cc29

View File

@ -62,4 +62,15 @@ if ( is_admin() ) {
register_activation_hook(__FILE__, 'bubbles_activation'); 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' );
?> ?>