shortcode_atts_{$shortcode}
Проверено на WordPress 6.9, обновлено Источник: WordPress Developer Resources.
Сигнатура
apply_filters( "shortcode_atts_{$shortcode}", array $out, array $pairs, array $atts, string $shortcode )
Описание
Если у функции shortcode_atts() присутствует третий параметр, то этот фильтр доступен.
Третий параметр, $shortcode, — это имя шорткода.
Оригинал (английский)
If the third parameter of the shortcode_atts() function is present then this filter is available.
The third parameter, $shortcode, is the name of the shortcode.
Динамические части имени
{$shortcode}- Третий параметр, $shortcode, — это имя шорткода.
Фильтруемое значение
Параметры
$out
array
обязательный
$pairs
array
обязательный
$atts
array
обязательный
$shortcode
string
обязательный
Исходный код
wp-includes/shortcodes.php:690
$out = apply_filters( "shortcode_atts_{$shortcode}", $out, $pairs, $atts, $shortcode );
История изменений
| Версия | Описание |
|---|---|
| 4.4.0 | Added the $shortcode parameter. |
| 3.6.0 | Introduced. |

