maybe_hash_hex_color( string $color ): string

In this article

Ensures that any hex color is properly hashed.

Description

Otherwise, returns value untouched.

This method should only be necessary if using sanitize_hex_color_no_hash() .

Parameters

$colorstringrequired

Return

string

Source

* Otherwise, returns value untouched.
*
* This method should only be necessary if using sanitize_hex_color_no_hash().
*
* @since 3.4.0
*
* @param string $color
* @return string

Changelog

VersionDescription
3.4.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.