Skip to content

UI Cleanup & Environment Bar

Orbit declutters the WordPress admin interface to remove options that non-technical client users should not alter, while adding environment visual indicators for developers.

Admin Menu Cleanup

By default, Orbit cleans up the left-hand WordPress admin navigation menu:

  • Comments Menu: Hidden by default (edit-comments.php), as most modern agency sites use forms or third-party platforms rather than native WordPress post comments.
  • Dashboard & Posts Menus: Kept visible by default, but can be disabled via filters.
php
// Hide the Comments menu item (Default: false / hidden)
add_filter( 'orbit_enable_menu_item_comments', '__return_false' );

// Hide the Dashboard menu item (Default: true / visible)
add_filter( 'orbit_enable_menu_item_dashboard', '__return_false' );

// Hide the Posts menu item (Default: true / visible)
add_filter( 'orbit_enable_menu_item_posts', '__return_false' );

Toolbar (Admin Bar) Cleanup

Orbit cleans up the top admin toolbar by removing non-essential or confusing menu nodes:

  • Removed Nodes: wp-logo, comments, customize, dashboard, menus, themes, widgets, view-site, search, and wpseo-menu (Yoast SEO).
  • New Content Menu: Controlled via the orbit_enable_toolbar_item_new_content filter.
php
// Remove the "+ New" menu from the top toolbar
add_filter( 'orbit_enable_toolbar_item_new_content', '__return_false' );

Orbit automatically strips noisy default dashboard meta boxes:

  • Site Health Status widget (dashboard_site_health)
  • Quick Draft widget (dashboard_quick_press)
  • WordPress Events & News widget (dashboard_primary)

Orbit also clears the default WordPress footer attribution text ("Thank you for creating with WordPress") in the admin panel.

Orbit allows replacing or hiding the default WordPress logo on the /wp-login.php screen.

php
// Set a custom login logo image URL
add_filter( 'orbit_login_logo_url', function() {
    return 'https://example.com/wp-content/uploads/admin-logo.png';
} );

// Set custom login logo width (Default: 250px)
add_filter( 'orbit_login_logo_width', fn() => 300 );

// Disable login logo replacement entirely
add_filter( 'orbit_enable_login_logo', '__return_false' );

Fallback Behaviour

If orbit_enable_login_logo is true but orbit_login_logo_url is left empty, Orbit hides the login <h1> logo block completely rather than displaying an unstyled WordPress logo.

Environment Toolbar Badge

Orbit displays a color-coded environment icon badge in the top right of the WordPress toolbar for Administrator users:

[ Info Icon ] Environment: Local / Development / Staging / Production

The badge reflects the value returned by core wp_get_environment_type().

Disabling Environment Toolbar Badge

php
add_filter( 'orbit_enable_admin_environment_name', '__return_false' );