wp_embed_unregister_handler() WordPress Function

The wp_embed_unregister_handler() function allows you to unregister a previously registered embed handler. This is useful if you want to replace an existing embed handler with a new one.

wp_embed_unregister_handler( string $id, int $priority = 10 ) #

Unregisters a previously-registered embed handler.


Parameters

$id

(string)(Required)The handler ID that should be removed.

$priority

(int)(Optional) The priority of the handler to be removed.

Default value: 10


Top ↑

Source

File: wp-includes/embed.php

function wp_embed_unregister_handler( $id, $priority = 10 ) {
	global $wp_embed;
	$wp_embed->unregister_handler( $id, $priority );
}


Top ↑

Changelog

Changelog
VersionDescription
2.9.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.