bp_groupblog_activity_permalink

Set the activity permalink for groupblog posts to the post permalink.

Description

bp_groupblog_activity_permalink( $retval, $activity ); 

Parameters (2)

0. $retval
The retval.
1. $activity
The activity.

Usage

  1. if ( !function_exists( 'bp_groupblog_activity_permalink' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'bp-groupblog/bp-groupblog.php'; 
  3.  
  4. // The retval. 
  5. $retval = null; 
  6.  
  7. // The activity. 
  8. $activity = null; 
  9.  
  10. // NOTICE! Understand what this does before running. 
  11. $result = bp_groupblog_activity_permalink($retval, $activity); 
  12.  

Defined (1)

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

/bp-groupblog.php  
  1. function bp_groupblog_activity_permalink( $retval, $activity ) { 
  2. // not a groupblog post? stop now! 
  3. if ( $activity->type != 'new_groupblog_post' ) { 
  4. return $retval; 
  5.  
  6. return $activity->primary_link;