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 and 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 project was approved via The ProjectHuddle Logo for our WP Webhooks integration ProjectHuddle, create an attachment from a server path via The WordPress Logo for our integration WordPress.
When the full cache was cleared via The W3 Total Cache Logo for our WP Webhooks integration W3 Total Cache, create an attachment from a server path via The WordPress Logo for our integration WordPress.
When broken links have been detected via The Broken Link Checker Logo for our WP Webhooks integration Broken Link Checker, create an attachment from a server path via The WordPress Logo for our integration WordPress.
When a lesson was completed via The LearnDash Logo for our WP Webhooks integration LearnDash, create an attachment from a server path 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 server path via The WordPress Logo for our integration WordPress.
When a shortcode was called 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 user was logged out via The WordPress Logo for our integration WordPress, create an attachment from a server path via The WordPress Logo for our integration WordPress.
When an assignment was uploaded via The LearnDash Logo for our WP Webhooks integration LearnDash, create an attachment from a server path via The WordPress Logo for our integration WordPress.
When the cache was cleared via The WP Rocket Logo for our WP Webhooks integration WP Rocket, create an attachment from a server path via The WordPress Logo for our integration WordPress.
When a post was created 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 new customer was created 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 form was submitted via The Contact Form 7 Logo for our integration Contact Form 7, create an attachment from a server path via The WordPress Logo for our integration WordPress.
When a form was submitted via The Forminator Logo for our WP Webhooks integration Forminator, create an attachment from a server path via The WordPress Logo for our integration WordPress.
When a website comment was created via The ProjectHuddle Logo for our WP Webhooks integration ProjectHuddle, create an attachment from a server path via The WordPress Logo for our integration WordPress.
When a plugin was activated 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 Automate.io webhook request was received via The Automate.io Logo for our WP Webhooks integration Automate.io, create an attachment from a server path via The WordPress Logo for our integration WordPress.
When a paid membership was cancelled via The Restrict Content Pro Logo for our WP Webhooks integration Restrict Content Pro, create an attachment from a server path via The WordPress Logo for our integration WordPress.
When a post was deleted 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 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 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 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.

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.