Skip to content

Add new fields to image attributes in products documentation #273

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: trunk
Choose a base branch
from

Conversation

gigitux
Copy link

@gigitux gigitux commented Jul 30, 2025

Summary

This PR updates the WooCommerce REST API v3 documentation to reflect new image metadata properties added to the Products controller. This documentation update aligns with the improvements made in woocommerce/woocommerce#60074.

Changes Made

Added three new image metadata properties to the Images Properties section in the Products REST API v3 documentation:

  • srcset - Image srcset for responsive images (read-only)
  • sizes - Image sizes attribute for responsive images (read-only)
  • thumbnail - Thumbnail image URL (read-only)

⚠️ Only merge once 10.2 is released after September 15, 2025 ⚠️

- Added `srcset`, `sizes`, and `thumbnail` attributes to the image section.
- Marked these attributes as read-only for clarity.
@gigitux gigitux marked this pull request as ready for review July 30, 2025 10:50
@gigitux gigitux self-assigned this Jul 30, 2025
@gigitux gigitux requested a review from kmanijak July 30, 2025 10:50
Copy link

@kmanijak kmanijak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for quickly addressing it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants