WP_Embed::unregister_handler() WordPress Method

The WP_Embed::unregister_handler() method is used to remove a previously registered embed handler. This can be useful if you need to deregister a default handler, or replace an existing handler with a custom one.

WP_Embed::unregister_handler( string $id, int $priority = 10 ) #

Unregisters a previously-registered embed handler.


Description

Do not use this function directly, use wp_embed_unregister_handler() instead.


Top ↑

Parameters

$id

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

$priority

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

Default value: 10


Top ↑

Source

File: wp-includes/class-wp-embed.php

	public function unregister_handler( $id, $priority = 10 ) {
		unset( $this->handlers[ $priority ][ $id ] );
	}

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.