Created
January 16, 2023 11:09
-
-
Save gmmedia/422d82cacee0733bb12aeae38700c981 to your computer and use it in GitHub Desktop.
WordPress: Add Script to Header in first position/priority
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_action( 'wp_head', function () { ?> | |
<script></script> | |
<?php }, -1000 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment