File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed
Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change 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
3434require_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 ' );
You can’t perform that action at this time.
0 commit comments