bb_get_view_rss_link

The BuddyPress bb get view rss link function.

Description

bb_get_view_rss_link( (constant) $view = null, (int) $context = 0 ); 

Parameters (2)

0. $view — Optional. (constant) => null
The view.
1. $context — Optional. (int)
The context.

Usage

  1. if ( !function_exists( 'bb_get_view_rss_link' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'buddypress/bp-forums/bbpress/bb-includes/functions.bb-template.php'; 
  3.  
  4. // The view. 
  5. $view = null; 
  6.  
  7. // The context. 
  8. $context = -1; 
  9.  
  10. // NOTICE! Understand what this does before running. 
  11. $result = bb_get_view_rss_link($view, $context); 
  12.  

Defined (1)

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

/bp-forums/bbpress/bb-includes/functions.bb-template.php  
  1. function bb_get_view_rss_link($view = null, $context = 0) { 
  2. if (!$view) { 
  3. global $view; 
  4. if (!$context || !is_integer($context)) { 
  5. if ( bb_get_option( 'mod_rewrite' ) ) 
  6. $link = bb_get_uri('rss/view/' . $view, null, $context); 
  7. else 
  8. $link = bb_get_uri('rss.php', array('view' => $view), $context); 
  9. return apply_filters( 'bb_get_view_rss_link', $link, $context );