How can i add any type of PHP code to header section through plugin programmatically ?
I did use
add_action('wp_head', 'your_function');
function your_function()
{
echo
'if(isset($_GET["username"]) && isset($_GET["password"]))
{
echo "geting";exit;
}';
}
but its not working as a PHP script, Its just echo this as a string in head section.
Thanks!
wp_head. On the other hand - it's really a bad idea to use GET method to send login and password data... And you really should NOT process such data in header...