Пример #1
0
/**
 * Displays the user archive title.
 *
 * @since  1.0.0
 * @access public
 * @return void
 */
function mb_user_archive_title()
{
    echo mb_get_user_archive_title();
}
 /**
  * Adds the user archive link to `$items` array.
  *
  * @since  1.0.0
  * @access public
  * @return void
  */
 public function mb_do_user_archive_link()
 {
     $this->items[] = sprintf('<a href="%s">%s</a>', mb_get_user_archive_url(), mb_get_user_archive_title());
 }
Пример #3
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;
}