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.4

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' ),

	return new self( $message );