Order properties should not be accessed directly
-
This plugin gives a PHP Notice:
payment_method was called incorrectly. Order properties should not be accessed directly.
The line causing this is
$order->payment_method
in the functionemail_instructions()
.It should be
$order->get_payment_method()
the same way it is in the functionemail_add_po_number()
.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Order properties should not be accessed directly’ is closed to new replies.