mirror of
https://github.com/kremalicious/Badged.git
synced 2024-12-29 08:07:44 +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:
parent
86fa8c41fb
commit
145c642e5d
11
bubbles.php
11
bubbles.php
@ -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' );
|
||||||
|
|
||||||
?>
|
?>
|
Loading…
Reference in New Issue
Block a user