fbpx

wp_fusion_init

#Overview

This action is triggered after WP Fusion has loaded (specifically on the init hook at priority 0).

It can be used to initialize any functionality that depends on WP Fusion.

Note: This action will not fire if WP Fusion is not connected to a CRM.

#Examples

#Register an additional order status for sync

This example registers a custom WooCommerce order status tbh-unpaid for sync with your CRM.

function wpf_add_custom_order_status() {

	add_action( 'woocommerce_order_status_tbh-unpaid', array( wp_fusion()->integrations->woocommerce, 'process_order' ) );

}

add_action( 'wp_fusion_init', 'wpf_add_custom_order_status' );

Was this helpful?

Our Black Friday Sale is Here! 🎉

Take advantage of the biggest discount we’ve ever offered. Save 30% off new licenses and upgrades.

Days
Hours
Minutes
Seconds
Sorry, this offer has expired.

Valid until Monday December 2nd. See Terms and Conditions