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.

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?