Create URL attachment action

This action lets you create an attachment from a URL via the WordPress integration. Use it to automate you daily work and save time and resources.

How to create an attachment from a URL

This section aims to help you getting started on how to create an attachment from a URL via WordPress. Simply select one of your prefered automation manuals down below and start automating your WordPress website in no time.

"Create URL attachment" arguments

Our so-called arguments are values that you can use to customize your request. They allow you to send specific data to the Create URL attachment action which is then handled accordingly to the described purpose. You can use the arguments that you would like to send values for.
To learn more about it, please see the Setup Guide above.
url *

The url of the file you want to create the attachment of.

arguments

(JSON) Custom arguments to customize your upload process. Default: Please see the description for further information.

file_name

Customize the file name of the attachment. - Please see the description for further information.

parent_post_id

The parent post id in case you want to set a parent for the file. Default: 0

add_post_thumbnail

Assign this attachment as a post thumbnail to one or multiple posts. Please see the description for further details.

attachment_image_alt

Add a custom Alternative Text to the attachment (Image ALT).

attachment_title

Add a custom title to the attachment (Image Title).

attachment_caption

Add a custom caption to the attachment (Image Caption).

attachment_description

Add a custom description to the attachment (Image Descripiton).

do_action

Advanced: Register a custom action after Webhooks Pro fires this webhook. More infos are in the description.

wpwh_call_action

(String) Register a custom WordPress hook callback. The value will be called as followed: do_action( $yourdefinedaction, $action_return_data, $request_data )

Connection examples

Get inspired on how to use the "Create URL attachment" action within our WordPress integrations. Down below you will find various examples with our other integrations.
When a donation was preapproved via The GiveWP Logo for our WP Webhooks integration GiveWP, create an attachment from a URL via The WordPress Logo for our integration WordPress.
When a product was viewed via The Woocommerce Logo for our integration WooCommerce, create an attachment from a URL via The WordPress Logo for our integration WordPress.
When a project was approved via The ProjectHuddle Logo for our WP Webhooks integration ProjectHuddle, create an attachment from a URL via The WordPress Logo for our integration WordPress.
When a profile photo was updated via The WP User Manager Logo for our WP Webhooks integration WP User Manager, create an attachment from a URL via The WordPress Logo for our integration WordPress.
When a user password was changed via The WP User Manager Logo for our WP Webhooks integration WP User Manager, create an attachment from a URL via The WordPress Logo for our integration WordPress.
When a taxonomy term was updated via The WordPress Logo for our integration WordPress, create an attachment from a URL via The WordPress Logo for our integration WordPress.
When a product was created via The Woocommerce Logo for our integration WooCommerce, create an attachment from a URL via The WordPress Logo for our integration WordPress.
When a product was added to the cart via The Woocommerce Logo for our integration WooCommerce, create an attachment from a URL via The WordPress Logo for our integration WordPress.
When a booking was rejected via The Events Manager Logo for our WP Webhooks integration Events Manager, create an attachment from a URL via The WordPress Logo for our integration WordPress.
When a tag was removed from a contact via The Groundhogg Logo for our WP Webhooks integration Groundhogg, create an attachment from a URL via The WordPress Logo for our integration WordPress.
When an ACF comment field was updated via The Advanced Custom Fields Logo for our WP Webhooks integration Advanced Custom Fields, create an attachment from a URL via The WordPress Logo for our integration WordPress.
When a Microsoft Power Automate webhook request was received via The Microsoft Power Automate Logo for our WP Webhooks integration Microsoft Power Automate, create an attachment from a URL via The WordPress Logo for our integration WordPress.
When a custom trigger was called via PHP via The WordPress Logo for our integration WordPress, create an attachment from a URL via The WordPress Logo for our integration WordPress.
When a post was updated via The WordPress Logo for our integration WordPress, create an attachment from a URL via The WordPress Logo for our integration WordPress.
When a Make (Integromat) HTTP request was received via The Make (Integromat) Logo for our WP Webhooks integration Make (Integromat), create an attachment from a URL via The WordPress Logo for our integration WordPress.
When an order was restored via The Woocommerce Logo for our integration WooCommerce, create an attachment from a URL via The WordPress Logo for our integration WordPress.
When a tag was added to a contact via The Groundhogg Logo for our WP Webhooks integration Groundhogg, create an attachment from a URL via The WordPress Logo for our integration WordPress.
When a post got favored via The Favorites Logo for our WP Webhooks integration Favorites, create an attachment from a URL via The WordPress Logo for our integration WordPress.
When a topic was unfavored via The bbPress Logo for our WP Webhooks integration bbPress, create an attachment from a URL via The WordPress Logo for our integration WordPress.
When an order was refunded via The Studiocart Logo for our WP Webhooks integration Studiocart, create an attachment from a URL via The WordPress Logo for our integration WordPress.
When a HTTP request was received via The Webhooks Logo for our WP Webhooks integration Webhooks, create an attachment from a URL via The WordPress Logo for our integration WordPress.

More available WordPress endpoints

Discover more of the available endpoints used for the WordPress integration.
To learn more about a specific endpoint, simply click on it.
Full disclosure: When clicking on some of the links on our website and purchasing the related product and/or service, we may earn a commission free of any additional cost for you.