woocommerce_payment_token_added_to_order

woocommerce_payment_token_added_to_order

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action

See hook in core

Displaying hooks found in version: woocommerce.9.3.3

do_action('woocommerce_payment_token_added_to_order') is found 1 times:

  • /includes/abstracts/abstract-wc-order.php line 1615
    		$token_ids   = $this->data_store->get_payment_token_ids( $this );
    		$token_ids[] = $token->get_id();
    		$this->data_store->update_payment_token_ids( $this, $token_ids );
    
    		do_action( 'woocommerce_payment_token_added_to_order', $this->get_id(), $token->get_id(), $token, $token_ids );
    		return $token->get_id();
    	}
    
    	/**
    	 * Returns a list of all payment tokens associated with the current order
    	 *