Happy Halloween! Get 20% off GP Premium with the discount code: HALLOWEEN20

Reply To: Using "Simple PHP" plugin generates errors

Home Forums Support Using "Simple PHP" plugin generates errors Reply To: Using "Simple PHP" plugin generates errors

#208574
Tom
Lead Developer
Lead Developer

Not seeing anything wrong with it, but it just might be that you’re echoing code which can interfere with other code.

Try this instead:

add_action( 'generate_before_header','generate_test_function' );
function generate_test_function()
{
    echo 'This is a test.';
}