Home › Forums › Support › Using "Simple PHP" plugin generates errors › Reply To: Using "Simple PHP" plugin generates errors
July 11, 2016 at 7:49 pm
#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.';
}