WordPress at Your Fingertips
function is not described

WC_Order::get_transaction_id() public WC 1.0

Get transaction d.

{} It's a method of the class: WC_Order{}

No Hooks.

Return

String.

Usage

$WC_Order = new WC_Order();
$WC_Order->get_transaction_id( $context );
$context(string)
What the value is for. Valid values are view and edit.

Code of WC_Order::get_transaction_id() WC 5.5.2

<?php
public function get_transaction_id( $context = 'view' ) {
	return $this->get_prop( 'transaction_id', $context );
}