bp_get_blog_permalink()
Description
Source
File: bp-blogs/bp-blogs-template.php
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.