Opens in a new tab
A picture of Jeff Brigman
I CODE TODAY FOR
A BETTER TOMORROW

Glossary Term

maybe_hash_hex_color()

3 tags 1 category

maybe_hash_hex_color() — Ensures that any hex color is properly hashed. Otherwise, returns value untouched. This method should only be necessary if using sanitize_hex_color_no_hash().

Inputs: $color (string): The color value to add the hash prefix to. Can be with or without a #.

Returns string: The color with the hash prefix if it’s a valid hex color, otherwise the original value.

Term Connections

Explore related terms connected by shared tags, shared categories, and relationship phrases. This map loads only when it comes into view.

Loading term connections…