bp_media_featured

The rtMedia for WordPress, BuddyPress and bbPress bp media featured function.

Description

bp_media_featured( (bool) $user_id = false ); 

Parameters (1)

0. $user_id — Optional. (bool) => false
The user id.

Usage

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

Defined (1)

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

/app/main/controllers/media/RTMediaFeatured.php  
  1. function bp_media_featured( $user_id = false ) { 
  2. echo rtmedia_get_featured( $user_id ); // @codingStandardsIgnoreLine