Adding code to tag <head>

 

/* =================================================================================
 *CODES in HEADER
* ================================================================================= */
function functionsphp_head(){

    $before = <<<EOT
<!-- code in tag head -->
EOT;

}
add_filter( 'wp_head', 'functionsphp_head' );
/* ================================================================================= */