checks.php
@@ -43,6 +43,7 @@ function() use($taxonomy, $termID) { $taxonomy = jvbCheckBase($taxonomy); $tax = get_taxonomy($taxonomy); if ($tax) { $query = new WP_Query([ 'post_type' => $tax->object_type, 'posts_per_page' => 1, @@ -57,6 +58,9 @@ $result = ($query->have_posts()) ? 'true' : 'false'; wp_reset_postdata(); return $result; } return 'false'; } ); }