WP_Embed::unregister_handler()publicWP 1.0

Unregisters a previously-registered embed handler.

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

Method of the class: WP_Embed{}

No Hooks.


null. Nothing (null).


global $wp_embed;
$wp_embed->unregister_handler( $id, $priority );
$id(string) (required)
The handler ID that should be removed.
The priority of the handler to be removed .
Default: 10)

WP_Embed::unregister_handler() code WP 6.4.3

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