Site logo

[Support request] functions php file modified code

Home Forums Support [Support request] functions php file modified code

Home Forums Support functions php file modified code

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #2477499
    Mayank

    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

    #2477512
    Fernando
    Customer Support

    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

    #2477519
    Mayank

    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?

    #2477520
    Fernando
    Customer Support

    Yes, you can remove that entire code in green.

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.