rtmedia_get_group_featured

The rtMedia for WordPress, BuddyPress and bbPress rtmedia get group featured function.

Description

rtmedia_get_group_featured( (bool) $group_id = false ); 

Parameters (1)

0. $group_id — Optional. (bool) => false
The group id.

Usage

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

Defined (1)

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

/app/main/controllers/media/RTMediaGroupFeatured.php  
  1. function rtmedia_get_group_featured( $group_id = false ) { 
  2. $featured = new RTMediaGroupFeatured( $group_id, false ); 
  3.  
  4. return $featured->content();