All Topics
With or Without the # (before #hex Color field type)
I wanted to ask about the Field Type “color”. I’m using Modern Event Calendar, which uses a color field. Their plugin does not use the # in the wp_postmeta field (so, 000000; and not #000000).
AdminColumns needs the # in front of the hex color, to display a color on the field. here’s a screenshot of what i’m talking about:
would it be possible to modify your code so that it detects the color with or without the # in front of the hex color? (see how the hex color is there, but only displays color if the # is present?) without the #, the color doesn’t show on the admin row… but with the #, it ends up producing two ## (eg: ##000000) in the end result of the plugin.
You must be logged in to reply to this topic.