Last active
October 16, 2022 05:40
-
-
Save kulterryan/3b88ce28ecb8812c5766dd78ac30c2f2 to your computer and use it in GitHub Desktop.
Add Javascript Codes in WordPress Function.php File
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
function swp_add_custom_javascript() { | |
?> | |
<script> | |
// Replace Javascript Codes Here | |
</script> | |
<?php | |
} | |
add_action('wp_head', 'swp_add_custom_javascript'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment