woocommerce_get_order_payment_tokens filter-hookWC 1.0

Usage

add_filter( 'woocommerce_get_order_payment_tokens', 'wp_kama_woocommerce_get_order_payment_tokens_filter', 10, 2 );

/**
 * Function for `woocommerce_get_order_payment_tokens` filter-hook.
 * 
 * @param  $tokens   
 * @param  $order_id 
 *
 * @return 
 */
function wp_kama_woocommerce_get_order_payment_tokens_filter( $tokens, $order_id ){

	// filter...
	return $tokens;
}
$tokens
-
$order_id
-

Where the hook is called

WC_Payment_Tokens::get_order_tokens()
woocommerce_get_order_payment_tokens
woocommerce/includes/class-wc-payment-tokens.php 131
return apply_filters( 'woocommerce_get_order_payment_tokens', $tokens, $order_id );

Where the hook is used in WooCommerce

Usage not found.