Create file action

This action lets you create a file via the WordPress integration. Use it to automate you daily work and 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 coupon was created via The Woocommerce Logo for our integration WooCommerce, create a file via The WordPress Logo for our integration WordPress.
When a subscription payment was completed via The WooCommerce Subscriptions Logo for our WP Webhooks integration WooCommerce Subscriptions, create a file via The WordPress Logo for our integration WordPress.
When a product was deleted via The Woocommerce Logo for our integration WooCommerce, create a file via The WordPress Logo for our integration WordPress.
When the site cache was cleared via The Cache Enabler Logo for our WP Webhooks integration Cache Enabler, create a file via The WordPress Logo for our integration WordPress.
When a response was added to a ticket via The Fluent Support Logo for our WP Webhooks integration Fluent Support, 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 user completed a unit via The WP Courseware Logo for our WP Webhooks integration WP Courseware, create a file via The WordPress Logo for our integration WordPress.
When an appointment was rescheduled via The Amelia Logo for our WP Webhooks integration Amelia, create a file via The WordPress Logo for our integration WordPress.
When a user was registered via The WP User Manager Logo for our WP Webhooks integration WP User Manager, create a file via The WordPress Logo for our integration WordPress.
When a membership expired 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 post was created via The WordPress Logo for our integration WordPress, create a file via The WordPress Logo for our integration WordPress.
When an order was created via The Woocommerce Logo for our integration WooCommerce, create a file via The WordPress Logo for our integration WordPress.
When a quiz was failed via The LearnDash Logo for our WP Webhooks integration LearnDash, 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 WordPress hook was fired via The WordPress Logo for our integration WordPress, create a file via The WordPress Logo for our integration WordPress.
When a project was approved via The ProjectHuddle Logo for our WP Webhooks integration ProjectHuddle, create a file via The WordPress Logo for our integration WordPress.
When a free membership was cancelled via The Restrict Content Pro Logo for our WP Webhooks integration Restrict Content Pro, create a file via The WordPress Logo for our integration WordPress.
When a IFTTT webhook request was received via The IFTTT Logo for our WP Webhooks integration IFTTT, create a file via The WordPress Logo for our integration WordPress.
When a booking was cancelled via The Events Manager Logo for our WP Webhooks integration Events Manager, create a file via The WordPress Logo for our integration WordPress.
When a customer was updated via The Woocommerce Logo for our integration WooCommerce, create a file via The WordPress Logo for our integration WordPress.
When the full cache was cleared via The Cache Enabler Logo for our WP Webhooks integration Cache Enabler, 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.