bp_member_last_active

  • apply_filters( 'bp_member_last_active', $last_activity )

    Source Reference:

    • Component: BuddyPress :: bp-members
      File: /bp-members/bp-members-template.php :: Trac Source Line: 563
      }
      	function bp_get_member_last_active() {
      		global $members_template;
      
      		if ( isset( $members_template->member->last_activity ) )
      			$last_activity = bp_core_get_last_activity( $members_template->member->last_activity, __( 'active %s', 'buddypress' ) );
      		else
      			$last_activity = __( 'Never active', 'buddypress' );
      
      		return apply_filters( 'bp_member_last_active', $last_activity );
      	}
      
      function bp_member_latest_update( $args = '' ) {
      	echo bp_get_member_latest_update( $args );
      }
      	function bp_get_member_latest_update( $args = '' ) {
      		global $bp, $members_template;
      
      		$defaults = array(
      			'length'    => 225,
      
  • apply_filters( 'bp_member_last_active', $registered )

    Source Reference:

    • Component: BuddyPress :: bp-members
      File: /bp-members/bp-members-template.php :: Trac Source Line: 642
      function bp_member_registered() {
      	echo bp_get_member_registered();
      }
      	function bp_get_member_registered() {
      		global $members_template;
      
      		$registered = esc_attr( bp_core_get_last_activity( $members_template->member->user_registered, __( 'registered %s', 'buddypress' ) ) );
      
      		return apply_filters( 'bp_member_last_active', $registered );
      	}
      
      function bp_member_random_profile_data() {
      	global $members_template;
      
      	if ( bp_is_active( 'xprofile' ) ) { ?>
      		<?php $random_data = xprofile_get_random_profile_data( $members_template->member->id, true ); ?>
      			<strong><?php echo wp_filter_kses( $random_data[0]->name ) ?></strong>
      			<?php echo wp_filter_kses( $random_data[0]->value ) ?>
      	<?php }
      

Comments are closed.