File tree Expand file tree Collapse file tree 3 files changed +29
-1
lines changed
Expand file tree Collapse file tree 3 files changed +29
-1
lines changed Original file line number Diff line number Diff line change @@ -210,7 +210,7 @@ This project is licensed under the GPL3 License.
210210
211211Release pending.
212212
213- * No new features until now.
213+ * Added: Disable UpdraftPlus @ Admin Bar
214214
215215### 0.8
216216
Original file line number Diff line number Diff line change 4646require_once ('unmus_me.php ' );
4747require_once ('unmus_activitypub.php ' );
4848require_once ('unmus_widgets.php ' );
49+ require_once ('unmus_visibility.php ' );
4950
5051// Ensure that all required functions are available during setup
5152require_once ( ABSPATH . 'wp-admin/includes/upgrade.php ' );
Original file line number Diff line number Diff line change 1+ <?php
2+
3+ /**
4+ * Visbility
5+ *
6+ * @package unmus
7+ * @since 0.9
8+ */
9+
10+ // Security: Stops code execution if WordPress is not loaded
11+ if (!defined ('ABSPATH ' )) { exit ; }
12+
13+ /**
14+ * Disable UpdraftPlus @ Admin Bar
15+ *
16+ * @since 0.9
17+ */
18+
19+ function unmus_disable_updraftplus_admin_bar () {
20+
21+ global $ wp_admin_bar ;
22+ $ wp_admin_bar ->remove_menu ('updraft_admin_node ' );
23+
24+ }
25+ add_action ('wp_before_admin_bar_render ' , 'unmus_disable_updraftplus_admin_bar ' , 999 );
26+
27+ ?>
You can’t perform that action at this time.
0 commit comments