bp_core_get_last_activity

  • apply_filters( 'bp_core_get_last_activity', $last_active, $last_activity_date, $string )

    Source Reference:

    • Component: BuddyPress :: bp-core
      File: /bp-core/bp-core-functions.php :: Trac Source Line: 735
       * @param $after The text to append to the activity time since figure.
       * @uses bp_core_time_since() This function will return an English representation of the time elapsed.
       */
      function bp_core_get_last_activity( $last_activity_date, $string ) {
      	if ( !$last_activity_date || empty( $last_activity_date ) )
      		$last_active = __( 'not recently active', 'buddypress' );
      	else
      		$last_active = sprintf( $string, bp_core_time_since( $last_activity_date ) );
      
      	return apply_filters( 'bp_core_get_last_activity', $last_active, $last_activity_date, $string );
      }
      
      /**
       * Get the path of of the current site.
       *
       * @package BuddyPress Core
       *
       * @global $bp $bp
       * @global object $current_site
       * @return string
      

Comments are closed.