wp_fusion_init

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?

Let us know if you liked the post. That』s the only way we can improve.

Yes

No

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注