Last active
October 16, 2017 11:49
-
-
Save cubehrends/b4d2cbe2ee932c9ce1c1a69bf83624d5 to your computer and use it in GitHub Desktop.
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
<?php | |
function toggle_checkout_add_ons_enqueue() { | |
if( is_page( 'checkout' ) ) { | |
wp_enqueue_script( 'mytheme-tcao-js', get_stylesheet_directory_uri() . '/js/toggle_checkout_add_ons.js', array('jquery'), '1.0', true); | |
} | |
} | |
add_action( 'wp_enqueue_scripts', 'toggle_checkout_add_ons_enqueue' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment