Registers an embed handler.
Should probably only be used for sites that do not support oEmbed.
$idstringrequired
$regexstringrequired
$callbackcallablerequired
$priorityintoptional
Default:10
function wp_embed_register_handler( $id, $regex, $callback, $priority = 10 ) {
global $wp_embed;
$wp_embed->register_handler( $id, $regex, $callback, $priority );
}
| Version | Description |
|---|---|
| 2.9.0 | Introduced. |
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/wp_embed_register_handler