Add Stock Image is a WordPress ability from The Plus Addons for Elementor — usable via Easy MCP AI, which connects Claude, ChatGPT, and any AI assistant to your site.
Install Free Plugin →Add Stock Image
WriteSearches Openverse for an image, downloads it to the Media Library, and adds it as an image widget to the page in one step.
Requires the The Plus Addons for Elementor plugin (which registers under the 'tpae' ability category) on WordPress 6.9+, with Elementor active. Every ability requires the current user to have the 'edit_posts' capability (and 'edit_post' for the specific post being modified); abilities that create or edit content also verify Elementor and, where relevant, the target The Plus widget are available. A subset of abilities (theme templates, template conditions, dynamic tags, popups, and some custom-code abilities) only register when Elementor Pro is active, and many widget abilities load only in the free plugin when the Pro add-on is inactive.
What it does
Chains three internal operations: calls execute_search_images with the query and a (default 'wide') aspect_ratio filter to fetch results, selects the result at the given index, calls execute_sideload_image to import it into the Media Library with alt text/caption/attribution, then builds an Elementor image widget (with image_size, optional align, caption, and link_to settings) via the element factory and inserts it into the target parent container with insert_element before saving the page.
See it in action
You ask your AI assistant
"Add a wide hero banner image about 'technology office' to container xyz on page 42."
Inputs
| Name | Type | Required | Description |
|---|---|---|---|
| post_id | integer | Yes | The post/page ID. |
| parent_id | string | Yes | Parent container element ID. |
| query | string | Yes | Image search keywords (e.g. "hero banner technology", "team photo office"). |
| index | integer | No | Which search result to use (0 = best match). Default: 0. |
| position | integer | No | Insert position within parent. -1 = append (default). |
| image_size | string | No | Image size preset. Default: full. One of thumbnail, medium, medium_large, large, full. |
| align | string | No | Image alignment. One of left, center, right. |
| caption | string | No | Caption override. Defaults to Openverse attribution. |
| aspect_ratio | string | No | Image aspect ratio filter. Default: wide (landscape). One of wide, tall, square, any. |
| alt_text | string | No | Alt text override. Defaults to the image title. |
| link_to | string | No | Link behavior. Default: none. One of none, file, custom. |
Returns
Returns attachment_id, image_url, element_id of the inserted widget, original_url (source Openverse URL), and attribution text.
Permission
check_combined_permission requires both edit_posts and upload_files capabilities, plus edit_post capability on post_id if provided.
More The Plus Addons for Elementor abilities
Accordion
Adds The Plus Addons "Accordion" widget (tp-accordion) to an Elementor container.
Add Code Snippet
Creates a site-wide Custom Code snippet using Elementor Pro, injecting CSS/JS/meta into the head or body on all pages.
Add Container
Adds a new Elementor flex container to a page or nests it inside another existing container.
Add Container
Adds a flex or grid container to a page, optionally nested inside a parent container.
Add Custom CSS
Adds custom CSS to a specific element or to the entire page (requires Elementor Pro).
Add Custom JavaScript
Adds a custom JavaScript snippet to a page by inserting an HTML widget containing a <script> tag; works with free Elementor.