$product_img = $product->get_image_id();
$image_url = wp_get_attachment_image_url( $product_img, 'full' );
<img src="<?php echo $image_url";?>
или вот таким фильтром (в functions.php)
add_filter( 'subcategory_archive_thumbnail_size', function( $size ) {
if ( function_exists( 'is_product_category' ) ) {
return 'full';
}
return $size;
} );
[text* text-21]
add_filter( 'wpcf7_form_elements', 'imp_wpcf7_form_elements' );
function imp_wpcf7_form_elements( $content ) {
$str_pos = strpos( $content, 'name="text-21"' ); // тут название твоего input
if ( $str_pos !== false ) {
$content = substr_replace( $content, ' data-attr="custom" data-msg="Foo Bar 1" ', $str_pos, 0 );
}
return $content;
}
<?php foreach (get_comments() as $comment): ?>
var_dump($comment)
<?php endforeach; ?>