Automattic\WooCommerce\Internal\ProductAttributes

VisualAttributeTermAdmin::render_color_inputprivate staticWC 1.0

Render the color input and label.

Method of the class: VisualAttributeTermAdmin{}

No Hooks.

Returns

null. Nothing (null).

Usage

$result = VisualAttributeTermAdmin::render_color_input( $field_id_prefix, $color_value ): void;
$field_id_prefix(string) (required)
Field ID prefix.
$color_value(string) (required)
Color value.

VisualAttributeTermAdmin::render_color_input() code WC 10.9.1

<?php
private static function render_color_input( string $field_id_prefix, string $color_value ): void {
	?>
	<label for="<?php echo esc_attr( self::get_color_input_id( $field_id_prefix ) ); ?>"><?php esc_html_e( 'Color value', 'woocommerce' ); ?></label>
	<?php self::render_color_input_control( $field_id_prefix, $color_value ); ?>
	<?php
}