Filter hook 'wp_audio_shortcode_override'
in WP Core File wp-includes/media.php at line 3255
Description
Filters the default audio shortcode output. If the filtered output isn't empty, it will be used instead of generating the default audio template.
Occurrences
Filename |
Line Number |
wp-includes/media.php |
3255 |
Parameters
Type |
Name |
Description |
string |
$html |
Empty variable to be replaced with shortcode markup. |
array |
$attr |
Attributes of the shortcode. See {@see wp_audio_shortcode()}. |
string |
$content |
Shortcode content. |
int |
$instance |
Unique numeric ID of this audio shortcode instance. |
PHP Doc
/**
* Filters the default audio shortcode output.
*
* If the filtered output isn't empty, it will be used instead of generating the default audio template.
*
* @since 3.6.0
*
* @param string $html Empty variable to be replaced with shortcode markup.
* @param array $attr Attributes of the shortcode. See {@see wp_audio_shortcode()}.
* @param string $content Shortcode content.
* @param int $instance Unique numeric ID of this audio shortcode instance.
*/