< Back to API Documentation

PRC_Order->get_agent_last_name

Returns the last name of the agent who created a given order.

Example

$order = new PRC_Order( $photo_order_id );

$agent_last_name = $order->get_agent_last_name();

echo 'This first name of the agent of this order is: ' . $agent_last_name;