Skip to content

Commit e6ef99f

Browse files
authored
Settings link added
1 parent ced2a8c commit e6ef99f

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

bloatoff-utils/bloatoff-utils.php

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Plugin Name: Bloat-off - bloat removal and utilities
44
* Plugin URI: https://github.com/Nikodemsky/bloatoff
55
* Description: Plugin handles removal of most basic Wordpress bloat and gives an access to remove things like comments system completely.
6-
* Version: 0.9
6+
* Version: 0.9.1
77
* Requires at least: 5.2
88
* Requires PHP: 7.4
99
* Author: Wojciech Górski
@@ -34,4 +34,12 @@
3434
require_once BLOATOFF_PLUGIN_DIR . 'includes/optimizations.php';
3535

3636
// Utilities file
37-
require_once BLOATOFF_PLUGIN_DIR . 'includes/utilities.php';
37+
require_once BLOATOFF_PLUGIN_DIR . 'includes/utilities.php';
38+
39+
// Add settings link on plugin page
40+
function bu_add_settings_link($links) {
41+
$settings_link = '<a href="' . admin_url('options-general.php?page=bloatoff-utils') . '">' . __('Settings', 'bloatoff-utils') . '</a>';
42+
array_unshift($links, $settings_link);
43+
return $links;
44+
}
45+
add_filter('plugin_action_links_' . plugin_basename(__FILE__), 'bu_add_settings_link');

0 commit comments

Comments
 (0)