Automattic\WooCommerce\Internal\ProductAttributes

VisualAttributeTermAdmin::render_color_inputprivate staticWC 1.0

Render the color input and label.

Метод класса: VisualAttributeTermAdmin{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

$result = VisualAttributeTermAdmin::render_color_input( $field_id_prefix, $color_value ): void;
$field_id_prefix(строка) (обязательный)
Field ID prefix.
$color_value(строка) (обязательный)
Color value.

Код VisualAttributeTermAdmin::render_color_input() WC 11.0.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
}