When customizing my website i tried to hide “email” and “website” fields from the “leave a reply” section (comments). I managed to do this by adding the following code in functions.php
Every time i updated the theme i had to do it again. Today when i updated the theme i added the code again and i received an error: “Your PHP code changes were rolled back due to an error……”. I will attach screenshot.
Is there a way to solve this problem without the need to add it again every time i update, like adding code in “custom code” section ?
Solution for this topic
I hope you are well today and thank you for your question.
You can achieve this by using the custom plugin solution shared in the following topic.