bp_core_get_displayed_userid

  • apply_filters( 'bp_core_get_displayed_userid', bp_core_get_userid( $user_login ) )

    Source Reference:

    • Component: BuddyPress :: bp-members
      File: /bp-members/bp-members-functions.php :: Trac Source Line: 156
      /**
       * Returns the user id for the user that is currently being displayed.
       * eg: http://andy.domain.com/ or http://domain.com/andy/
       *
       * @package BuddyPress Core
       * @uses bp_core_get_userid_from_user_login() Returns the user id for the username passed
       * @return The user id for the user that is currently being displayed, return zero if this is not a user home and just a normal blog.
       */
      function bp_core_get_displayed_userid( $user_login ) {
      	return apply_filters( 'bp_core_get_displayed_userid', bp_core_get_userid( $user_login ) );
      }
      
      /**
       * Returns the user_id for a user based on their username.
       *
       * @package BuddyPress Core
       * @param $username str Username to check.
       * @global $wpdb WordPress DB access object.
       * @return false on no match
       * @return int the user ID of the matched user.
      

Comments are closed.