WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru Самая быстрая Тема-конструктор для WordPress
функция не описана

WP_Embed::register_handler() public WP 1.0

Registers an embed handler.

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

This function should probably also only be used for sites that do not support oEmbed.

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

Хуков нет.

Возвращает

Null. Ничего.

Использование

$WP_Embed = new WP_Embed();
$WP_Embed->register_handler( $id, $regex, $callback, $priority );
$id(строка) (обязательный)
An internal ID/name for the handler. Needs to be unique.
$regex(строка) (обязательный)
The regex that will be used to see if this handler should be used for a URL.
$callback(callable) (обязательный)
The callback function that will be called if the regex is matched.
$priority(число)
Used to specify the order in which the registered handlers will be tested. Lower numbers correspond with earlier testing, and handlers with the same priority are tested in the order in which they were added to the action.
По умолчанию: 10

Код WP_Embed::register_handler() WP 5.5.1

<?php
public function register_handler( $id, $regex, $callback, $priority = 10 ) {
	$this->handlers[ $priority ][ $id ] = array(
		'regex'    => $regex,
		'callback' => $callback,
	);
}