WPSEO_File_Size_Exception::externally_hosted
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() WPSEO File Size Exception::externally hosted Yoast 27.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' ),
$file_url,
);
return new self( $message );
}