Syntax error, type E_PARSE
-
I had added the code give in this post: https://ww.wp.xz.cn/support/topic/include-product-notes-in-admin-emails/#post-13925293 two weeks ago with no issues, until a week later. WordPress sent an email saying:
Your Site is Experiencing a Technical Issue
They said the error was caught on this page:
wp-admin/admin-ajax.phpError Details
=============
An error of type E_PARSE was caused in line 781 of the file functions.php. Error message: syntax error, unexpected ‘&’Line 781 is this section of the code that was provided for adding the purchase notes to the admin emails:
add_filter (‘woocommerce_email_order_items_args’, ‘send_purchase_note_to_everyone’);
I haven’t seen any issues on the site, it seems to be working fine and the admin panel is working fine. Is there something I need to change with the code to fix this?
The topic ‘Syntax error, type E_PARSE’ is closed to new replies.