bricks_upload_media
Upload images to the WordPress Media Library from a local file path or URL. Get attachment ID, URL, and metadata required for Bricks image elements.
Instructions
Upload an image to the WordPress Media Library. Provide either a local file_path or a URL. Returns the attachment ID, URL, and metadata needed for Bricks image elements.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | URL of an image to download and upload | |
| title | No | Title for the media attachment (optional) | |
| caption | No | Caption for the image (optional) | |
| alt_text | No | Alt text for the image (optional) | |
| file_path | No | Absolute path to a local image file |