bp_core_avatar_dimension

  • apply_filters( 'bp_core_avatar_dimension', $dim, $type, $h_or_w )

    Source Reference:

    • Component: BuddyPress :: bp-core
      File: /bp-core/bp-core-avatars.php :: Trac Source Line: 745
       * @param str $type 'thumb' for thumbs, otherwise full
       * @param str $h_or_w 'height' for height, otherwise width
       * @return int $dim The dimension
       */
      function bp_core_avatar_dimension( $type = 'thumb', $h_or_w = 'height' ) {
      	global $bp;
      
      	$dim = isset( $bp->avatar->{$type}->{$h_or_w} ) ? (int)$bp->avatar->{$type}->{$h_or_w} : false;
      
      	return apply_filters( 'bp_core_avatar_dimension', $dim, $type, $h_or_w );
      }
      
      /**
       * Get the avatar thumb width setting
       *
       * @package BuddyPress
       * @since 1.5
       *
       * @return int The thumb width
       */
      

Comments are closed.