• cgdannie

    (@cgdannie)


    Hello,

    thank you for your great plugin! But I have a little problem. I knwo, this has probably nothing to do with your plugin and I already asked here, but maybe you can yet help me.

    When I paste the following code

    <?php
        echo 'before';
        $someArray = ['foo' => 'bar'];
        echo 'after';
    ?>
    <b>some HTML</b>

    into your widget inside the Elementor PageBuilder, everything works fine and returns

    beforeafter
    

    as long as I am logged in (even with an account, that has only the author role).

    When I am logged out, the PHP code is not executed and the following is printed on the site:

    'bar']; echo 'after'; ?>
    

    The HTML is rendered fine.

    If I paste the same code into a widget outisde of Elementor, everything also works fine.

    Do you have any ideas how to solve this issue? Thank you very much!

Viewing 1 replies (of 1 total)
  • Plugin Author Samuel Wood (Otto)

    (@otto42)

    www.ads-software.com Admin

    No idea how to solve that. Sounds like something Elementor is doing, such that it is interpreting the < … > as an HTML tag.

    Sorry, ask Elementor.

Viewing 1 replies (of 1 total)
  • The topic ‘PHP code not executed when logged out’ is closed to new replies.