Archived topic
functions php file modified code
3 replies · Started by Mayank on December 29, 2022
Hello Sir, I need a piece of information. I scanned my website with wordfence security plugin.
After scanning, the message of a generatepress/functions.php file came in front of me.
This file has been modified.
I am sending you the screenshot of the file. Please tell me whether I have to remove the modified code. Or this code has been automatically modified? please give me information
screenshot 1 https://prnt.sc/exLYWSjtLS8H
screenshot 2 https://prnt.sc/AkFR6u1lcryr
Hi Mayank,
The content of funtions.php should just be this: https://github.com/tomusborne/generatepress/blob/master/functions.php
Did you add that code? That code should be alright but it will be removed if you update GeneratePress.
It's best to remove that and it instead through these methods(if you need that code) - Adding PHP: https://docs.generatepress.com/article/adding-php/#code-snippets
Thanks for your reply. I didn't add this code. GeneratePress is updated. This code was not removed after the update. can I remove this code by myself?
Yes, you can remove that entire code in green.
