bp_get_blog_permalink

The BuddyPress bp get blog permalink function.

Description

bp_get_blog_permalink(); 

Usage

  1. if ( !function_exists( 'bp_get_blog_permalink' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'buddypress/bp-blogs/bp-blogs-template.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = bp_get_blog_permalink(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/bp-blogs/bp-blogs-template.php  
  1. function bp_get_blog_permalink() { 
  2. global $blogs_template; 
  3.  
  4. if ( empty( $blogs_template->blog->domain ) ) 
  5. $permalink = bp_get_root_domain() . $blogs_template->blog->path; 
  6. else { 
  7. $protocol = 'http://'; 
  8. if ( is_ssl() ) 
  9. $protocol = 'https://'; 
  10.  
  11. $permalink = $protocol . $blogs_template->blog->domain . $blogs_template->blog->path; 
  12.  
  13. /** 
  14. * Filters the blog permalink. 
  15. * @since 1.0.0 
  16. * @param string $permalink Permalink URL for the blog. 
  17. */ 
  18. return apply_filters( 'bp_get_blog_permalink', $permalink );