Tribe__Tickets__Commerce__PayPal__Order::hydrate_from_transaction_data( array $transaction_data )
Fills an order information from a transaction data array.
Contents
This is a database-light operation that will not update the Order database information, use the update method to update the Order information on the database.
See also
Parameters
- $transaction_data
-
(array) (Required)
Return
Source
File: src/Tribe/Commerce/PayPal/Order.php
public function hydrate_from_transaction_data( array $transaction_data ) {
foreach ( $transaction_data as $key => $value ) {
$this->set_meta( $key, $value );
}
/**
* Fired after an Order object has been filled from post fields and meta.
*
* @since 4.7
*
* @param Tribe__Tickets__Commerce__PayPal__Order $this
* @param array $transaction_data
*/
do_action( 'tribe_tickets_tpp_order_from_transaction', $this, $transaction_data );
return $this;
}
Changelog
| Version | Description |
|---|---|
| 4.7 | Introduced. |