Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter cavalihno

    (@cavalihno)

    Hi, I dont have access to account. Can you help me there ?

    Hi,

    the same problem on WooCommerce 6.0.0
    I look like the “trigger” isn’t trigger.

    function kia_wc_add_order_meta_box_action( $actions ) {
    	global $theorder;
    	
    	// ADD "Email class details" CUSTOM ACTION
    	$actions['kia_email_class_detail_action'] = __( 'Custom email send', 'kia_class' );
    
    function kia_custom_woocommerce_email_actions( $actions ){
    	$actions[] = 'woocommerce_order_action_kia_email_class_detail_action';
    	return $actions;
    }
    add_filter( 'woocommerce_email_actions', 'kia_custom_woocommerce_email_actions' );
    
    add_action( 'woocommerce_order_action_kia_email_class_detail_action', array( $this, 'trigger' ) );
    	return $actions;
    }
    • This reply was modified 4 years, 4 months ago by cavalihno.
    • This reply was modified 4 years, 4 months ago by cavalihno.
    • This reply was modified 4 years, 4 months ago by cavalihno.
Viewing 2 replies - 1 through 2 (of 2 total)