get_rtmedia_user_link

The rtMedia for WordPress, BuddyPress and bbPress get rtmedia user link function.

Description

get_rtmedia_user_link( $id ); 

Parameters (1)

0. $id
The id.

Usage

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

Defined (1)

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

/app/main/RTMedia.php  
  1. function get_rtmedia_user_link( $id ) { 
  2. if ( function_exists( 'bp_core_get_user_domain' ) ) { 
  3. $parent_link = bp_core_get_user_domain( $id ); 
  4. } else { 
  5. $parent_link = get_author_posts_url( $id ); 
  6.  
  7. return $parent_link;