jQuery(document).ready(function ($) { // fires when jQuery is ready
hidethis();
$( document ).ajaxComplete(function() { // after ajax filter complete
hidethis();
});
function hidethis(){
$('.et_pb_de_mach_acf_item.hidethis').each(function(i, obj) { // For each ACF Item that has no value
$(this).closest(".et_pb_module").addClass("hidethis"); // Looks for closest row and then adds class
});
}
});