/**
 * Get term description.
 *
 * @since 1.0.0
 */
function wpex_term_description()
{
    if (wpex_has_term_description_above_loop()) {
        get_template_part('partials/term-description');
    }
}
 /**
  * Returns page subheading
  *
  * @since 3.0.0
  */
 private function get_page_subheading()
 {
     // Subheading is NULL by default
     $subheading = NULL;
     // Posts & Pages
     if ($meta = get_post_meta($this->post_id, 'wpex_post_subheading', true)) {
         $subheading = $meta;
     } elseif (is_search()) {
         $subheading = __('You searched for:', 'wpex') . ' "' . esc_html(get_search_query(false)) . '"';
     } elseif (is_category()) {
         if ('under_title' == wpex_get_mod('category_description_position', 'under_title')) {
             $subheading = term_description();
         }
     } elseif (is_author()) {
         $subheading = __('This author has written', 'wpex') . ' ' . get_the_author_posts() . ' ' . __('articles', 'wpex');
     } elseif (is_tax() && !wpex_has_term_description_above_loop()) {
         $subheading = term_description();
     }
     // Apply filters and return
     return apply_filters('wpex_post_subheading', $subheading);
 }