WPSEO_File_Size_Exception::unknown_error
Gets the exception for when a unknown error occurs.
Метод класса: WPSEO_File_Size_Exception{}
Хуков нет.
Возвращает
WPSEO_File_Size_Exception. Instance of the exception.
Использование
$result = WPSEO_File_Size_Exception::unknown_error( $file_url );
- $file_url(строка) (обязательный)
- The file url.
Код WPSEO_File_Size_Exception::unknown_error() WPSEO File Size Exception::unknown error Yoast 28.1
public static function unknown_error( $file_url ) {
$message = sprintf(
/* translators: %1$s expands to the requested url */
__( 'Cannot get the size of %1$s because of unknown reasons.', 'wordpress-seo' ),
$file_url,
);
return new self( $message );
}