Create file action

This action lets you create a file via the WordPress integration. Use it to automate you daily work ans save time and resources.

How to create a file

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

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

The path as well as the file name and extension. For example: wp-content/themes/demo-theme/index.php (See the main description for more information)

content *

The content for your file.

mode

The mode of the file. Default "w" (Write)

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 file" action within our WordPress integrations. Down below you will find various examples with our other integrations.
When a new referral was received via The AffiliateWP Logo for our WP Webhooks integration AffiliateWP, create a file via The WordPress Logo for our integration WordPress.
When an order was restored via The Woocommerce Logo for our integration WooCommerce, create a file via The WordPress Logo for our integration WordPress.
When a referral status changed via The AffiliateWP Logo for our WP Webhooks integration AffiliateWP, create a file via The WordPress Logo for our integration WordPress.
When a donation is processed via The GiveWP Logo for our WP Webhooks integration GiveWP, create a file via The WordPress Logo for our integration WordPress.
When a lesson was completed via The Tutor LMS Logo for our WP Webhooks integration Tutor LMS, create a file via The WordPress Logo for our integration WordPress.
When a product was restored via The Woocommerce Logo for our integration WooCommerce, create a file via The WordPress Logo for our integration WordPress.
When an action was fired via The WP Webhooks Logo for our WP Webhooks integration WP Webhooks, create a file via The WordPress Logo for our integration WordPress.
When a group access was removed via The LearnDash Logo for our WP Webhooks integration LearnDash, create a file via The WordPress Logo for our integration WordPress.
When an order was deleted via The Woocommerce Logo for our integration WooCommerce, create a file via The WordPress Logo for our integration WordPress.
When a form was submitted via The Forminator Logo for our WP Webhooks integration Forminator, create a file via The WordPress Logo for our integration WordPress.
When an ACF user field was updated via The Advanced Custom Fields Logo for our WP Webhooks integration Advanced Custom Fields, create a file via The WordPress Logo for our integration WordPress.
When a membership was created via The WooCommerce Memberships Logo for our WP Webhooks integration WooCommerce Memberships, create a file via The WordPress Logo for our integration WordPress.
When a donation is pending via The GiveWP Logo for our WP Webhooks integration GiveWP, create a file via The WordPress Logo for our integration WordPress.
When a product review has been approved via The Woocommerce Logo for our integration WooCommerce, create a file via The WordPress Logo for our integration WordPress.
When a membership was set to pending cancellation via The WooCommerce Memberships Logo for our WP Webhooks integration WooCommerce Memberships, create a file via The WordPress Logo for our integration WordPress.
When a custom link was clicked via The WP Webhooks Logo for our WP Webhooks integration WP Webhooks, create a file via The WordPress Logo for our integration WordPress.
When a post was trashed via The WordPress Logo for our integration WordPress, create a file via The WordPress Logo for our integration WordPress.
When a contact was removed from a list via The FluentCRM Logo for our WP Webhooks integration FluentCRM, create a file via The WordPress Logo for our integration WordPress.
When a form was submitted via The Newsletter Logo for our WP Webhooks integration Newsletter, create a file 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 a file 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 a file 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.