mirror of
https://github.com/kremalicious/Badged.git
synced 2024-12-29 16:17:43 +01:00
Add settings link on plugin page
This commit is contained in:
parent
77ae6e50ad
commit
e09bd1cc29
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