function mb_get_post_author_profile_link($post_id = 0) { $author_name = mb_get_post_author($post_id); $author_url = mb_get_post_author_profile_url($post_id); $profile_link = sprintf('<a class="user-profile-link" href="%s">%s</a>', $author_url, $author_name); return apply_filters('mb_get_post_author_profile_link', $profile_link, $post_id); }
/** * Returns the topic author profile URL. * * @since 1.0.0 * @access public * @param int $topic_id * @return string */ function mb_get_topic_author_profile_url($topic_id = 0) { return apply_filters('mb_get_topic_author_profile_url', mb_get_post_author_profile_url($topic_id), $topic_id); }