rtmedia_get_current_blog_url

Function to get permalink for current blog.

Description

(string) rtmedia_get_current_blog_url( (string) $domain ); 

Returns (string)

Parameters (1)

0. $domain (string)
The domain.

Usage

  1. if ( !function_exists( 'rtmedia_get_current_blog_url' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'rtmedia-for-wordpress-buddypress-and-bbpress/app/main/controllers/template/rtmedia-functions.php'; 
  3.  
  4. // The domain. 
  5. $domain = ''; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = rtmedia_get_current_blog_url($domain); 
  9.  

Defined (1)

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

/app/main/controllers/template/rtmedia-functions.php  
  1. function rtmedia_get_current_blog_url( $domain ) { 
  2.  
  3. $domain = get_home_url( get_current_blog_id() ); 
  4.  
  5. return $domain; 
  6.