Create path attachment action

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

How to create an attachment from a server path

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

"Create path 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 path 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.
path *

The relative path of the file you want to create the attachment of. Please see the description for more information.

parent_post_id

The parent post id inn case you want to set a parent for it. Default: 0

file_name

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

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 path attachment" action within our WordPress integrations. Down below you will find various examples with our other integrations.
When a user completed a unit via The WP Courseware Logo for our WP Webhooks integration WP Courseware, create an attachment from a server path via The WordPress Logo for our integration WordPress.
When a product was updated via The Woocommerce Logo for our integration WooCommerce, create an attachment from a server path via The WordPress Logo for our integration WordPress.
When a user password was recovered via The WP User Manager Logo for our WP Webhooks integration WP User Manager, create an attachment from a server path via The WordPress Logo for our integration WordPress.
When a form was submitted via The Ninja Forms Logo for our WP Webhooks integration Ninja Forms, create an attachment from a server path via The WordPress Logo for our integration WordPress.
When a form was submitted via The Elementor Logo for our WP Webhooks integration Elementor, create an attachment from a server path via The WordPress Logo for our integration WordPress.
When a form was submitted via The Divi Logo for our WP Webhooks integration Divi, create an attachment from a server path via The WordPress Logo for our integration WordPress.
When a user was updated via The WordPress Logo for our integration WordPress, create an attachment from a server path via The WordPress Logo for our integration WordPress.
When a form was submitted via The Formidable Logo for our WP Webhooks integration Formidable Forms, create an attachment from a server path 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 server path via The WordPress Logo for our integration WordPress.
When a user was updated via The WP User Manager Logo for our WP Webhooks integration WP User Manager, create an attachment from a server path via The WordPress Logo for our integration WordPress.
When a license status was updated via The Easy Digital Downloads Logo for our integration Easy Digital Downloads, create an attachment from a server path via The WordPress Logo for our integration WordPress.
When a ticket was reopened via The Fluent Support Logo for our WP Webhooks integration Fluent Support, create an attachment from a server path via The WordPress Logo for our integration WordPress.
When a user completed a course via The WP Courseware Logo for our WP Webhooks integration WP Courseware, create an attachment from a server path via The WordPress Logo for our integration WordPress.
When a booking was approved via The Events Manager Logo for our WP Webhooks integration Events Manager, create an attachment from a server path via The WordPress Logo for our integration WordPress.
When a note was added to a ticket via The Fluent Support Logo for our WP Webhooks integration Fluent Support, create an attachment from a server path via The WordPress Logo for our integration WordPress.
When a user unfollowed a user via The wpDiscuz Logo for our WP Webhooks integration wpDiscuz, create an attachment from a server path via The WordPress Logo for our integration WordPress.
When a donation failed via The GiveWP Logo for our WP Webhooks integration GiveWP, create an attachment from a server path via The WordPress Logo for our integration WordPress.
When a Zapier webhook request was received via The Zapier Logo for our WP Webhooks integration Zapier, create an attachment from a server path via The WordPress Logo for our integration WordPress.
When a user completed a module via The WP Courseware Logo for our WP Webhooks integration WP Courseware, create an attachment from a server path via The WordPress Logo for our integration WordPress.
When a customer was updated via The Woocommerce Logo for our integration WooCommerce, create an attachment from a server path via The WordPress Logo for our integration WordPress.
When a topic was favored via The bbPress Logo for our WP Webhooks integration bbPress, create an attachment from a server path 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.