< Back to API Documentation

METHOD

PRC_Order->get_data

Returns data from all public methods of PRC_Order.

Example

$order = new PRC_Order( $photo_order_id );

$order_data = $order->get_data();

//
// Returns an array like so:
// [
//     'selected_photographer_id' => 4,
//     'mileage' => 46,
//     'total' => 196,
//     ...etc.
// ]