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.

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

Source

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

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

© 2003–2021 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_embed/unregister_handler