Inject PHP before tag | WordPress.org

Hello,

i need to inject a long PHP code before <html> tag of a specific wordpress page.
The code will load a different “target” page (using iframe method) to user coming from different countries.
It seems the PHP code does not get injected on the top of the page at all because it show me the “target page” inside header.
Is there a way to make the plugin inject the php code at start before <html> tag and only into a specific page?

Thanks a lot

Regards

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Your Advertisement Here