Д
Size: a a a
Д
.p
NE
DP
DP
add_filter( 'the_title', 'custom_product_visor', 10, 2 );
function custom_product_visor( $title, $post_id ){
$post_type = get_post_field( 'post_type', $post_id, true );
if ( is_single() ){
if( in_array( $post_type, array( 'product', 'product_variation') ) ) {
$search = '||';
$replace = '<span class="visor"></span>';
$title = str_replace($search, $replace, $title );
}
}
return $title;
}
DP
BI
М
DP
BI
DP
DP
DP
F
F

F
М
F
BI