Created
January 5, 2018 17:41
-
-
Save elpuas/521b71aab1d962e0b9bad52bed07ce3c to your computer and use it in GitHub Desktop.
Add Inline Script Into WP Footer
This file contains hidden or 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 print_my_inline_script_custom() { | |
echo '<script type="text/javascript"> | |
// Document ready | |
jQuery(document).ready(function(){ | |
alert("call"); | |
}); | |
</script>'; | |
} | |
add_action( 'wp_footer', 'print_my_inline_script_custom' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment