< Back to API Documentation

METHOD

PRC_Order->get_selected_photographer_id

Returns the user ID of the selected photographer of an order.

Example

$order = new PRC_Order( $photo_order_id );

$photographer_id = $order->get_selected_photographer_id();

echo 'The selected photographer ID is: ' . $photographer_id;