< Back to API Documentation

METHOD

PRC_Order->get_mileage

Returns the mileage for the photographer of an order.

Example

$order = new PRC_Order( $photo_order_id );

$mileage = $order->get_mileage();

echo 'The mileage of this order is: ' . $mileage . ' miles.';