function that hide the popup in a specific category function that changes a popup in a specific category
<?php
add_action( 'template_redirect', 'ywpop_hide_popup', 9);
function ywpop_hide_popup(){
if( is_product_category() ){
add_filter( 'enable_yit_popup', '__return_false');
}
}
add_action( 'template_redirect', 'ywpop_change_popup', 9);
function ywpop_change_popup(){
if( is_product_category('music') ){
add_filter( 'ypop_current_popup', function( $id ) { return 102; } );
}
}