img_caption_shortcode_width
Проверено на WordPress 6.9, обновлено Источник: WordPress Developer Resources.
Сигнатура
apply_filters( 'img_caption_shortcode_width', int $width, array $atts, string $content )
Описание
По умолчанию подпись на 10 пикселей шире изображения, чтобы содержимое записи не прижималось к обтекаемому изображению.
См. alsoimg_caption_shortcode()
Оригинал (английский)
By default, the caption is 10 pixels greater than the width of the image, to prevent post content from running up against a floated image.
Фильтруемое значение
Параметры
$width
int
обязательный
$atts
array
обязательный
$content
string
обязательный
Исходный код
wp-includes/media.php:2618
$caption_width = apply_filters( 'img_caption_shortcode_width', $width, $atts, $content );
История изменений
| Версия | Описание |
|---|---|
| 3.7.0 | Introduced. |

