wc_product_post_thumbnail_html()WC 1.0

Filter to add upload tips under the product image thumbnail.

Хуков нет.

Возвращает

Строку.

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

wc_product_post_thumbnail_html( $content );
$content(строка) (обязательный)
The HTML markup for the admin post thumbnail.

Код wc_product_post_thumbnail_html() WC 7.1.0

function wc_product_post_thumbnail_html( $content ) {
	$suggestion  = '<div class="image-added-detail">';
	$suggestion .= '<p>';
	$suggestion .= '<span class="dashicons-info-outline dashicons"></span>';
	/* translators: 1: formatted file size */
	$suggestion .= esc_html( sprintf( __( 'Upload JPEG files that are 1000 x 1000 pixels or larger (max. %1$s).', 'woocommerce' ), size_format( wp_max_upload_size() ) ) );
	$suggestion .= ' <a href="https://woocommerce.com/posts/fast-high-quality-product-photos/" target="_blank" rel="noopener noreferrer">' . esc_html__( 'How to prepare images?', 'woocommerce' ) . '<span class="dashicons-external dashicons"></span></a>';
	$suggestion .= '</p>';
	$suggestion .= '</div>';

	return $content . $suggestion;
}