alleyinteractive / wp-alleyvate

Defaults for WordPress sites by Alley.
GNU General Public License v2.0
16 stars 2 forks source link

Remove Selected Admin Bar Links #52

Closed vancoder closed 8 months ago

vancoder commented 8 months ago

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

coderabbitai[bot] commented 8 months ago

Walkthrough

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.

Changes

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.

Tips ### Chat with CodeRabbit Bot (`@coderabbitai`) - If you reply to a *review comment* from CodeRabbit, the bot will automatically respond. - To engage with CodeRabbit bot directly around the specific lines of code in the PR, mention @coderabbitai in your review comment - Note: Review comments are made on code diffs or files, not on the PR overview. - Add `@coderabbitai ignore` anywhere in the PR description to prevent this PR from being reviewed. ### CodeRabbit Commands (invoked as PR comments) - `@coderabbitai pause` to pause the reviews on a PR. - `@coderabbitai resume` to resume the paused reviews. - `@coderabbitai review` to trigger a review. This is useful when automatic reviews are disabled for the repository. - `@coderabbitai help` to get help. Note: For conversation with the bot, please use the review comments on code diffs or files. ### CodeRabbit Configration File (`.coderabbit.yaml`) - You can programmatically configure CodeRabbit by adding a `.coderabbit.yaml` file to the root of your repository. - The JSON schema for the configuration file is available [here](https://coderabbit.ai/integrations/coderabbit-overrides.json). - If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: `# yaml-language-server: $schema=https://coderabbit.ai/integrations/coderabbit-overrides.json`