bp_core_get_userlink_by_username

  • apply_filters( 'bp_core_get_userlink_by_username', bp_core_get_userlink( $user_id, false, false, true ) )

    Source Reference:

    • Component: BuddyPress :: bp-members
      File: /bp-members/bp-members-functions.php :: Trac Source Line: 468
       * @param $username str If BP_ENABLE_USERNAME_COMPATIBILITY_MODE is set, this will be user_login, otherwise it will be user_nicename.
       * @return str The link to the users home base. False on no match.
       */
      function bp_core_get_userlink_by_username( $username ) {
      	if ( bp_is_username_compatibility_mode() )
      		$user_id = bp_core_get_userid( $username );
      	else
      		$user_id = bp_core_get_userid_from_nicename( $username );
      
      	return apply_filters( 'bp_core_get_userlink_by_username', bp_core_get_userlink( $user_id, false, false, true ) );
      }
      
      /**
       * Returns the total number of members for the installation.
       *
       * @package BuddyPress Core
       * @return int The total number of members.
       */
      function bp_core_get_total_member_count() {
      	global $wpdb, $bp;
      

Comments are closed.