bp_get_avatar_to_crop

  • apply_filters( 'bp_get_avatar_to_crop', $url )

    Source Reference:

    • Component: BuddyPress :: bp-core
      File: /bp-core/bp-core-template.php :: Trac Source Line: 136
      }
      	function bp_get_avatar_to_crop() {
      		global $bp;
      
      		if ( isset( $bp->avatar_admin->image->url ) )
      			$url = $bp->avatar_admin->image->url;
      		else
      			$url = '';
      
      		return apply_filters( 'bp_get_avatar_to_crop', $url );
      	}
      
      function bp_avatar_to_crop_src() {
      	echo bp_get_avatar_to_crop_src();
      }
      	function bp_get_avatar_to_crop_src() {
      		global $bp;
      
      		return apply_filters( 'bp_get_avatar_to_crop_src', str_replace( WP_CONTENT_DIR, '', $bp->avatar_admin->image->dir ) );
      	}
      

Comments are closed.