mirror of
https://gh.wpcy.net/https://github.com/mainwp/Code-Snippets-Functions.git
synced 2026-04-29 11:32:21 +08:00
5 lines
234 B
Text
5 lines
234 B
Text
add_filter( 'woocommerce_single_product_image_thumbnail_html', 'disable_data_src_loading', 10, 2 );
|
|
function disable_data_src_loading( $html, $attachment_id ) {
|
|
$html = str_replace( 'data-src', 'src', $html );
|
|
return $html;
|
|
}
|