versusbassz / entity-viewer

Displays data (properties, custom fields) of WordPress entities (posts, users, terms, comments) for developers
https://wordpress.org/plugins/entity-viewer/
GNU General Public License v2.0
15 stars 1 forks source link

Add an ability to toggle visibility of any field #2

Closed versusbassz closed 2 years ago

versusbassz commented 4 years ago

The possible implemention:

versusbassz commented 3 years ago

I don't remember for now what was the idea, unfortunately. Maybe, I'll reproduce an issue in the future during development.

versusbassz commented 3 years ago

I think, it was about huge serialized values, e.g.: wp_yoast_notifications. post_content is a about the same problem, I think.
Sometimes, you just want to hide them or decrease their height like in ACF repeaters.

Raw value:
Selection_168

Pretty value:
Selection_169

versusbassz commented 2 years ago

Done.

In fact, it's a "Spoiler" functionality.
The decision about to apply a spoiler to a value or not to apply is made in javascript logic (enabled prop of Spoiler component).