WordPress.org

Ready to get started?Download WordPress

Codex

Attention Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

Function Reference/wp embed unregister handler

Description

Unregister a previously registered embed handler.

Usage

<?php wp_embed_unregister_handler$id$priority ?>

Parameters

$id
(string) (required) The handler ID that should be removed.
Default: None
$priority
(integer) (optional) The priority of the handler to be removed
Default: 10

Return Values

This function does not return a value.

Examples

For a handler registered with the default priority:

wp_embed_unregister_handler( 'forbes' );

With a priority other than the default:

wp_embed_unregister_handler( 'forbes', 5 );

Notes

Change Log

Since: 2.9.0

Source File

wp_embed_unregister_handler() is located in wp-includes/media.php

Related

Embeds: wp_oembed_add_provider(), wp_oembed_remove_provider(), wp_oembed_get(), wp_embed_defaults(), wp_embed_register_handler(), wp_embed_unregister_handler(), get_embedded_audio(), get_embedded_media(), get_embedded_video(), wp_embed_handler_audio(), wp_embed_handler_video()