Automattic\WooCommerce\Internal\ProductAttributes

VisualAttributeTermAdmin::render_image_inputprivate staticWC 1.0

Render the image input and label.

Method of the class: VisualAttributeTermAdmin{}

No Hooks.

Returns

null. Nothing (null).

Usage

$result = VisualAttributeTermAdmin::render_image_input( $field_id_prefix, $image_value ): void;
$field_id_prefix(string) (required)
Field ID prefix.
$image_value(int) (required)
Image attachment ID.

VisualAttributeTermAdmin::render_image_input() code WC 10.9.1

<?php
private static function render_image_input( string $field_id_prefix, int $image_value ): void {
	?>
	<label for="<?php echo esc_attr( self::get_image_input_id( $field_id_prefix ) ); ?>"><?php esc_html_e( 'Image value', 'woocommerce' ); ?></label>
	<?php self::render_image_input_control( $field_id_prefix, $image_value ); ?>
	<?php
}