Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- to function my_conditional_enqueue_script1() {
- global $page;
- if ( is_single() && in_category( '19' ) ) {
- wp_enqueue_script( '/members/application/cart/views/public/js/cart.js' );
- }
- }
- add_action('wp_enqueue_scripts', 'my_conditional_enqueue_script1');
Add Comment
Please, Sign In to add comment