Home Forums WoodMart support forum Review Images

Review Images

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #710409

    vala.tech.ro
    Participant

    Hello,

    We are building a custom reviews carousel on our website and we would like to also display the review images uploaded by customers inside the carousel cards.

    I noticed that review images can be uploaded through the “Review Images” metabox when editing WooCommerce reviews in the admin area.

    In order to correctly retrieve and display those images in our custom implementation, we would like to ask:

    1.Under which comment meta key are the review images stored?

    2.Are the images saved as attachment IDs, image URLs, or another format (array / serialized data)?

    3.Is there a recommended function or method provided by you guys to retrieve review images programmatically?

    Thank you in advance!

    #710430

    Artem Temos
    Keymaster
    Xtemos team

    Hello,

    Here are answers to your questions about review images:

    1. The review images are stored under the comment meta key: _woodmart_image_id

    2. The images are saved as a comma-separated string of attachment IDs.
    The storage format is: “123,456,789” (where each number is a WordPress attachment ID)

    3. There is no specific helper for this purpose. You can get comment’s meta value with core WordPress function get_comment_meta.

    Kind Regards

Viewing 2 posts - 1 through 2 (of 2 total)