apply_filters( ‘wp_audio_embed_handler’, callable $handler )

In this article

Filters the audio embed handler callback.

Parameters

$handlercallable
Audio embed handler callback function.

Source

wp_embed_register_handler( 'audio', '#^https?://.+?\.(' . implode( '|', wp_get_audio_extensions() ) . ')$#i', apply_filters( 'wp_audio_embed_handler', 'wp_embed_handler_audio' ), 9999 );

Changelog

VersionDescription
3.6.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.