Magento2 Check Order Was Created by Admin or Customer?
By default, Magento2 only stores the remote_ip
in table sales_order
for an order that is place by customer
(while admin order is set to null).
if(!empty($order->getRemoteIp()){
//place customer
}
else{
// place by admin
}