mirror of
https://gh.wpcy.net/https://github.com/mainwp/Code-Snippets-Functions.git
synced 2026-05-01 11:52:25 +08:00
5 lines
194 B
Text
5 lines
194 B
Text
add_filter('woocommerce_single_product_image_thumbnail_html','wc_remove_link_on_thumbnails' );
|
|
|
|
function wc_remove_link_on_thumbnails( $html ) {
|
|
return strip_tags( $html,'<div><img>' );
|
|
}
|