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.

Метод класса: WP_Embed{}

Хуков нет.


null. Ничего (null).


global $wp_embed;
$wp_embed->unregister_handler( $id, $priority );
$id(строка) (обязательный)
The handler ID that should be removed.
The priority of the handler to be removed .
По умолчанию: 10)

Код WP_Embed::unregister_handler() WP 6.5.5

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