bp_insert_activity_meta

  • apply_filters( 'bp_insert_activity_meta', $content )

    Source Reference:

    • Component: BuddyPress :: bp-activity
      File: /bp-activity/bp-activity-template.php :: Trac Source Line: 1195
      	// Insert the time since.
      	$time_since = apply_filters_ref_array( 'bp_activity_time_since', array( '<span class="time-since">' . bp_core_time_since( $activities_template->activity->date_recorded ) . '</span>', &$activities_template->activity ) );
      
      	// Insert the permalink
      	if ( !bp_is_single_activity() )
      		$content = apply_filters_ref_array( 'bp_activity_permalink', array( sprintf( '%1$s <a href="%2$s" class="view activity-time-since" title="%3$s">%4$s</a>', $content, bp_activity_get_permalink( $activities_template->activity->id, $activities_template->activity ), esc_attr__( 'View Discussion', 'buddypress' ), $time_since ), &$activities_template->activity ) );
      	else
      		$content .= str_pad( $time_since, strlen( $time_since ) + 2, ' ', STR_PAD_BOTH );
      
      	return apply_filters( 'bp_insert_activity_meta', $content );
      }
      
      /**
       * Determine if the current user can delete an activity item
       *
       * @since 1.2.0
       *
       * @param object $activity Optional
       *
       * @global object $activities_template {@link BP_Activity_Template}
      

Comments are closed.