add_action( 'wp_footer', function () { ?> <!-- footer code goes here --> <?php } );
add_action( 'wp_head', function () { ?> <!-- header code goes here --> <?php } );