Call PHP function action

This action lets you call a PHP function via the WordPress integration. Use it to automate you daily work and save time and resources.

How to call a PHP function

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

"Call PHP function" arguments

Our so-called arguments are values that you can use to customize your request. They allow you to send specific data to the Call PHP function 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.
function_name *

(String) The function name of the PHP function you want to call.

function_arguments

(String) The arguments you want to send over within the function call. Use the variable name as the key and the value for the variable value. JSON and serialized data will be converted to its original format. To avoid it, please wrap the value in double quotes.

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 "Call PHP function" action within our WordPress integrations. Down below you will find various examples with our other integrations.
When a cover photo was updated via The WP User Manager Logo for our WP Webhooks integration WP User Manager, call a PHP function via The WordPress Logo for our integration WordPress.
When an entry was rejected via The GravityKit Logo for our WP Webhooks integration GravityKit, call a PHP function via The WordPress Logo for our integration WordPress.
When a customer was deleted via The Woocommerce Logo for our integration WooCommerce, call a PHP function 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, call a PHP function 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, call a PHP function via The WordPress Logo for our integration WordPress.
When an affiliate status was changed via The AffiliateWP Logo for our WP Webhooks integration AffiliateWP, call a PHP function via The WordPress Logo for our integration WordPress.
When a new affiliate signed up via The AffiliateWP Logo for our WP Webhooks integration AffiliateWP, call a PHP function via The WordPress Logo for our integration WordPress.
When a Stripe payment was completed via The Formidable Logo for our WP Webhooks integration Formidable Forms, call a PHP function via The WordPress Logo for our integration WordPress.
When a quiz was completed via The Tutor LMS Logo for our WP Webhooks integration Tutor LMS, call a PHP function 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, call a PHP function via The WordPress Logo for our integration WordPress.
When a plugin was deactivated via The WordPress Logo for our integration WordPress, call a PHP function via The WordPress Logo for our integration WordPress.
When a customer was updated via The Woocommerce Logo for our integration WooCommerce, call a PHP function via The WordPress Logo for our integration WordPress.
When a cover photo was removed via The WP User Manager Logo for our WP Webhooks integration WP User Manager, call a PHP function 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, call a PHP function via The WordPress Logo for our integration WordPress.
When the object cache was cleared via The W3 Total Cache Logo for our WP Webhooks integration W3 Total Cache, call a PHP function via The WordPress Logo for our integration WordPress.
When a product was created via The Woocommerce Logo for our integration WooCommerce, call a PHP function via The WordPress Logo for our integration WordPress.
When a subscription was cancelled via The Studiocart Logo for our WP Webhooks integration Studiocart, call a PHP function via The WordPress Logo for our integration WordPress.
When a shortcode was called via The WordPress Logo for our integration WordPress, call a PHP function via The WordPress Logo for our integration WordPress.
When an order was restored via The Woocommerce Logo for our integration WooCommerce, call a PHP function via The WordPress Logo for our integration WordPress.
When a user started following a user via The wpDiscuz Logo for our WP Webhooks integration wpDiscuz, call a PHP function via The WordPress Logo for our integration WordPress.
When a post was deleted via The WordPress Logo for our integration WordPress, call a PHP function 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.