过滤短代码的默认属性。
原型
apply_filters( "shortcode_atts_{$shortcode}", array $out, array $pairs, array $atts, string $shortcode )
描述
如果存在shortcode_atts()函数的第三个参数,则此过滤器可用。第三个参数$ shortcode是短代码的名称。
参数
$out
(array)
短代码属性的输出数组。
$pairs
(array)
支持的属性及其默认值。
$atts
(array)
用户定义了短代码属性。
$shortcode
(string)
短代码名称。
源文件
路径:wp-includes/shortcodes.php
其他
英文文档:https://developer.wordpress.org/reference/hooks/shortcode_atts_shortcode/