Skip to content

Instantly share code, notes, and snippets.

@kulterryan
Last active October 16, 2022 05:40
Show Gist options
  • Save kulterryan/3b88ce28ecb8812c5766dd78ac30c2f2 to your computer and use it in GitHub Desktop.
Save kulterryan/3b88ce28ecb8812c5766dd78ac30c2f2 to your computer and use it in GitHub Desktop.
Add Javascript Codes in WordPress Function.php File
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