function gptcseo_term_has_content($term_id) { foreach (['intro', 'seo_text', 'faq', 'howto', 'glossar', 'ratschlaege'] as $mod) { if (get_term_meta($term_id, '_gpt_mod_' . $mod, true)) return true; } return false; }