WP HOOKS
filtrod 2.9.0

oembed_dataparse

Args 3Plik wp-includes/class-wp-oembed.phpDokumentacja WP ↗

Opis — z kodu źródłowego

Filters the returned oEmbed HTML.

Use this filter to add support for custom data types, or to filter the result.

Parametry

ParametrTypOpis
$returnstring | falseThe returned oEmbed HTML, or false on failure.
$dataobjectA data object result from an oEmbed provider.
$urlstringThe URL of the content to be embedded.

Wywołanie

Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'oembed_dataparse', 'twoja_funkcja', 10, 3 );

function twoja_funkcja($param_1, $param_2, $param_3) {
	// Twój kod
}

Popularne w tej kategorii