$customer_id = get_current_user_id();
$last_order = wc_get_customer_last_order( $customer_id );
$order_id = $last_order->get_id();
$pros_html = "<div class='pcf-row'><b>Номер вашего заказа: {$order_id}</b></div>
<script type='text/javascript'>
jQuery(document).ready(function ($) {var order_id = '{$order_id}';console.log(order_id);});
</script>";
echo("<!-- empty line -->");flush();