-
-
Save rqreyes/8abdd202c0f1d62bb1de to your computer and use it in GitHub Desktop.
cmg form script enqueue
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
#add to an existing enqueue function | |
wp_enqueue_script( 'cmg-form-js', 'https://dil34hcn6yju7.cloudfront.net/assets/cmgform.js', null, null, false ); | |
#add a separate enqueue function | |
// CMG Form Script | |
function cmg_cdn_script() { | |
wp_enqueue_script( 'cmg-form-js', 'https://dil34hcn6yju7.cloudfront.net/assets/cmgform.js', null, null, false ); | |
} | |
add_action( 'wp_enqueue_scripts', 'cmg_cdn_script' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment