acf_get_attachment_image()
Устарела с версии 6.3.2. Больше не поддерживается и может быть удалена. Рекомендуется заменить эту функцию на аналог.
Return an image tag for the provided attachment ID
Хуков нет.
Возвращает
false.
Использование
acf_get_attachment_image( $attachment_id, $size );
- $attachment_id(int)
- The attachment ID.
- $size(строка)
- The image size to use in the image tag.
По умолчанию: 'thumbnail'
Список изменений
| С версии 5.5.0 | Введена. |
| Устарела с | 6.3.2 |
Код acf_get_attachment_image() acf get attachment image ACF 6.4.2
function acf_get_attachment_image( $attachment_id = 0, $size = 'thumbnail' ) {
// report function as deprecated
_deprecated_function( __FUNCTION__, '6.3.2' );
return false;
}