Closed vancoder closed 8 months ago
The pull request introduces a new feature to clean the WordPress admin bar by removing specified menus. The feature is implemented in a new class Clean_Admin_Bar
and is added to the list of features in load.php
. The PR also includes test cases for the new feature in test-clean-admin-bar.php
.
File | Summary |
---|---|
README.md |
The description for the disable_dashboard_widgets feature has been updated. |
.../class-clean-admin-bar.php |
A new class Clean_Admin_Bar is introduced to clean the WordPress admin bar by removing specified menus. |
.../load.php |
The new feature "clean_admin_bar" is added to the list of features. |
.../test-clean-admin-bar.php |
Test cases for the new feature are added. The tests cover the removal of admin bar nodes and the application of filters. |
Summary
Removes specific admin bar links that we don't normally want to include (comments and themes).
Changelog entries
Added
Added the
clean_admin_bar
feature.Fixes #6
Summary by CodeRabbit
disable_dashboard_widgets
feature for clarity and accuracy.