wc_add_product_post_thumbnail_html_filter()WC 1.0

Action to add the filter to add upload tips under the product image thumbnail.

Хуков нет.

Возвращает

null. Ничего.

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

wc_add_product_post_thumbnail_html_filter( $current_screen );
$current_screen(WP_Screen) (обязательный)
Current WP_Screen object.

Код wc_add_product_post_thumbnail_html_filter() WC 7.1.0

function wc_add_product_post_thumbnail_html_filter( $current_screen ) {
	if ( 'product' === $current_screen->post_type && 'post' === $current_screen->base ) {
		add_filter( 'admin_post_thumbnail_html', 'wc_product_post_thumbnail_html' );
	}
}