bp_get_blog_name()

Return the name of the current blog in the loop.

Description

Return

(string) The name of the current blog in the loop.

Source

File: bp-blogs/bp-blogs-template.php

494
495
496
497
498
499
500
501
502
503
504
505
function bp_get_blog_name() {
    global $blogs_template;
 
    /**
     * Filters the name of the current blog in the loop.
     *
     * @since BuddyPress 1.2.0
     *
     * @param string $name Name of the current blog in the loop.
     */
    return apply_filters( 'bp_get_blog_name', $blogs_template->blog->name );
}

Questions?

We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.