woocommerce_receipt_(orderpayment_method) action-hookWC 1.0

Usage

add_action( 'woocommerce_receipt_(orderpayment_method)', 'wp_kama_woocommerce_receipt_orderpayment_method_action' );

/**
 * Function for `woocommerce_receipt_(orderpayment_method)` action-hook.
 * 
 * @param  $order_id 
 *
 * @return void
 */
function wp_kama_woocommerce_receipt_orderpayment_method_action( $order_id ){

	// action...
}
$order_id
-

Where the hook is called

In file: /templates/checkout/order-receipt.php
woocommerce_receipt_(orderpayment_method)
woocommerce/templates/checkout/order-receipt.php 44
<?php do_action( 'woocommerce_receipt_' . $order->get_payment_method(), $order->get_id() ); ?>

Where the hook is used in WooCommerce

Usage not found.