Created
February 25, 2020 18:33
-
-
Save ChaseWiseman/c92748155c2cfcddeab5355636fdba24 to your computer and use it in GitHub Desktop.
Limit Jilt for EDD JS to logged-in users
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 // only copy this line if needed | |
add_action( 'wp_enqueue_scripts', function() { | |
if ( ! is_user_logged_in() ) { | |
wp_dequeue_script( 'edd-jilt' ); | |
} | |
}, 15 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment