packages/kirki-framework/module-webfonts/src/Helper.php
public static function get_remote_url_contents( $url, $args = [] ) {
		$response = wp_remote_get( $url, $args );
		if ( is_wp_error( $response ) ) {
			return [];
		}
		$html = wp_remote_retrieve_body( $response );
		if ( is_wp_error( $html ) ) {
			return;
		}
		return $html;
	}
public static function get_remote_url_contents( $url, $args = [] ) {
		$response = wp_remote_get( $url, $args );
		if ( is_wp_error( $response ) ) {
			return [];
		}
		$html = wp_remote_retrieve_body( $response );
		if ( is_wp_error( $html ) ) {
			return;
		}
		return $html;
	}
public static function get_remote_url_contents ( $ url , $ args = [ ] ) { $ response = wp_remote_get ( $ url , $ args ) ; if ( is_wp_error ( $ response ) ) { return [ ] ; } $ html = wp_remote_retrieve_body ( $ response ) ; if ( is_wp_error ( $ html ) ) { return ; } return $ html ; }
Gets the remote URL contents.

@static
@access public
@since 3.0.36
@param string $url  The URL we want to get.
@param array  $args An array of arguments for the wp_remote_retrieve_body() function.
@return string      The contents of the remote URL.
Gets the remote URL contents .