Title: REST API
Last modified: January 28, 2025

---

# REST API

 *  Resolved [Sam](https://wordpress.org/support/users/xumbrella/)
 * (@xumbrella)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/rest-api-165/)
 * Hello, does this plugin work if a product is created, and images added, by Rest
   API?
 * Thanks

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [Valerio Monti](https://wordpress.org/support/users/valeriomonti/)
 * (@valeriomonti)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/rest-api-165/#post-18274111)
 * Hello! Yes, the plugin works when a product and its images are added via the 
   REST API.
 * However, for the alt text to be generated automatically, you **should not** include
   the `alt` attribute in the API request. If an alt text is provided in the request,
   the plugin will not override it.
 * Let me know if you have any questions! 😊
 *  Thread Starter [Sam](https://wordpress.org/support/users/xumbrella/)
 * (@xumbrella)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/rest-api-165/#post-18274269)
 * Wonderful, thanks.
 *  Thread Starter [Sam](https://wordpress.org/support/users/xumbrella/)
 * (@xumbrella)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/rest-api-165/#post-18274274)
 * One other question… Is it possible to limit the plugin’s actions to only apply
   to Woocommerce products and not posts or pages?
 * thanks!
 *  Plugin Author [Valerio Monti](https://wordpress.org/support/users/valeriomonti/)
 * (@valeriomonti)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/rest-api-165/#post-18274905)
 * At the moment, the plugin generates alt text for all images regardless of the
   post type, so it applies to WooCommerce products as well as posts and pages.
 * However, adding an option to limit it to specific post types is an interesting
   idea, and I’ll consider it for a future update. Thanks for the suggestion!

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘REST API’ is closed to new replies.

 * ![](https://ps.w.org/auto-alt-text/assets/icon.svg?rev=3052057)
 * [Auto Alt Text](https://wordpress.org/plugins/auto-alt-text/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/auto-alt-text/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/auto-alt-text/)
 * [Active Topics](https://wordpress.org/support/plugin/auto-alt-text/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/auto-alt-text/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/auto-alt-text/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [Valerio Monti](https://wordpress.org/support/users/valeriomonti/)
 * Last activity: [1 year, 4 months ago](https://wordpress.org/support/topic/rest-api-165/#post-18274905)
 * Status: resolved