WPSEO_File_Size_Exception::externally_hosted()public staticYoast 1.0

Gets the exception for an externally hosted file.

Метод класса: WPSEO_File_Size_Exception{}

Хуков нет.

Возвращает

WPSEO_File_Size_Exception. Instance of the exception.

Использование

$result = WPSEO_File_Size_Exception::externally_hosted( $file_url );
$file_url(строка) (обязательный)
The file url.

Код WPSEO_File_Size_Exception::externally_hosted() Yoast 22.3

public static function externally_hosted( $file_url ) {
	$message = sprintf(
		/* translators: %1$s expands to the requested url */
		__( 'Cannot get the size of %1$s because it is hosted externally.', 'wordpress-seo' ),
		$file_url
	);

	return new self( $message );
}