Esempio n. 1
0
function mb_topic_archive_title()
{
    echo mb_get_topic_archive_title();
}
Esempio n. 2
0
/**
 * Filter on `get_the_archive_title` to output the correct archive page title.
 *
 * @since  1.0.0
 * @access public
 * @param  string  $title
 * @return string
 */
function mb_the_archive_title_filter($title)
{
    if (!mb_is_message_board()) {
        return $title;
    }
    if (mb_is_forum_archive()) {
        $title = mb_get_forum_archive_title();
    } elseif (mb_is_topic_archive()) {
        $title = mb_get_topic_archive_title();
    } elseif (mb_is_reply_archive()) {
        $title = mb_get_reply_archive_title();
    } elseif (mb_is_role_archive()) {
        $title = mb_get_role_archive_title();
    } elseif (mb_is_user_archive()) {
        $title = mb_get_user_archive_title();
    }
    return $title;
}