Skip to content

Add toggle to SQLite Admin Bar item display via PHP filter hook#89

Closed
0aveRyan wants to merge 2 commits intoWordPress:mainfrom
0aveRyan:add/adminbar-visibility-toggle-hook
Closed

Add toggle to SQLite Admin Bar item display via PHP filter hook#89
0aveRyan wants to merge 2 commits intoWordPress:mainfrom
0aveRyan:add/adminbar-visibility-toggle-hook

Conversation

@0aveRyan
Copy link
Copy Markdown

@0aveRyan 0aveRyan commented Apr 8, 2024

I believe the goal should always be to surface the SQLite database state transparently, however that should be balanced with providing a WordPress experience that feels native, doesn't have excess clutter in screenshots, etc.

The current implementation's UX could either use a little refinement or relocation.

As the SQLite state is surfaced in the database, I think this proposed filter and/or...

  • Reducing the surface area/color prescription on the Admin Bar
  • Tucking this item under the WordPress menu item in the Admin Bar as a secondary item that doesn't take up to-level area, but could be noted through some kind of notification indicator dot or other treatment on the WordPress logo mark.

@adamziel
Copy link
Copy Markdown
Collaborator

@0aveRyan couldn't you achieve the same with this code?

remove_action( 'admin_bar_menu', 'sqlite_plugin_adminbar_item' );

@0aveRyan
Copy link
Copy Markdown
Author

You sure could 😁 well, we can close this. If I use a custom color scheme soon and the hardcoded green bugs me I may come back for it 😅

@0aveRyan 0aveRyan closed this Apr 16, 2024
@0aveRyan
Copy link
Copy Markdown
Author

On mobile, but pulled this out of my link graveyard and set a reminder. One of these CSS classes is probably right for the text.

@0aveRyan 0aveRyan deleted the add/adminbar-visibility-toggle-hook branch April 17, 2024 23:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants