Wordpress 钩子:wp_audio_shortcode
文章目录
过滤音频短代码输出。
原型
apply_filters( 'wp_audio_shortcode', string $html, array $atts, string $audio, int $post_id, string $library )
参数
$html
(string)
音频短代码HTML输出。
$atts
(array)
音频短代码属性的数组。
$audio
(string)
音频文件。
$post_id
(int)
帖子ID。
$library
(string)
用于音频短代码的媒体库。
源文件
路径:wp-includes/media.php
其他
英文文档:https://developer.wordpress.org/reference/hooks/wp_audio_shortcode/
文章作者 iBllex
上次更新 2019-02-18