Celebrating 7 Years! Get up to $30 off GeneratePress Premium!

[Support request] Problem to add php code to hook

Home Forums Support [Support request] Problem to add php code to hook

Home Forums Support Problem to add php code to hook

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #598042
    hibiscus80

    Hi,

    I tried to add php code to the hook “before header” but I get an error message ERR_BLOCKED_BY_XSS_AUDITOR

    I don’t have this problem with css or javascript code but only php
    The problem doesn’t come from the code or the configuration of the server because I used the same code on another website hosting on the same server without any problem.
    I already tried to desactive all the plugins except generatepress but the problem persist?

    Thanks

    GeneratePress 2.1.2
    #598052
    hibiscus80

    Is the code added in a hook saved in database? If yes in which table? I would like to try to insert it manually. Thanks

    #598359
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    Looks like an extra security measure your host has added to their server. They’re preventing that code from saving to the database.

    You’ll need to contact them in order for them to allow you to save it.

    Let me know if you need more info 🙂

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