Support » Plugin: Code Snippets » Echo produce no output

  • Resolved matiseli

    (@matiseli)


    good day,
    I note that I am new to PHP. I’m trying to print a message on the page using this simple code:
    `echo “test”;
    After update the page, however, I can’t find the message anywhere. What am I doing wrong?
    thank you for answer

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author Shea Bunge

    (@bungeshea)

    Snippets used in this plugin should be function snippets, not output snippets. If you want to test out a message, use an appropriate action hook:

    add_action( 'get_footer', function () {
        echo 'test';
    } );
Viewing 1 replies (of 1 total)
  • The topic ‘Echo produce no output’ is closed to new replies.