过滤默认音频短代码输出。
原型
apply_filters( 'wp_audio_shortcode_override', string $html, array $attr, string $content, int $instance )
描述
如果筛选的输出不为空,则将使用它而不是生成默认音频模板。
参数
$html
(string)
用shortcode标记替换的空变量。
$attr
(array)
短代码的属性。 @see wp_audio_shortcode()
$content
(string)
短代码内容。
$instance
(int)
此音频短代码实例的唯一数字ID。
源文件
路径:wp-includes/media.php
其他
英文文档:https://developer.wordpress.org/reference/hooks/wp_audio_shortcode_override/