bp_get_blog_permalink()

Description

Source

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

459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
function bp_get_blog_permalink() {
    global $blogs_template;
 
    if ( empty( $blogs_template->blog->domain ) )
        $permalink = bp_get_root_domain() . $blogs_template->blog->path;
    else {
        $protocol = 'http://';
        if ( is_ssl() )
            $protocol = 'https://';
 
        $permalink = $protocol . $blogs_template->blog->domain . $blogs_template->blog->path;
    }
 
    /**
     * Filters the blog permalink.
     *
     * @since BuddyPress 1.0.0
     *
     * @param string $permalink Permalink URL for the blog.
     */
    return apply_filters( 'bp_get_blog_permalink', $permalink );
}

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.