WP HOOKS
filtrod 2.9.0

oembed_result

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

Opis — z kodu źródłowego

Filters the HTML returned by the oEmbed provider.

Parametry

ParametrTypOpis
$datastring | falseThe returned oEmbed HTML (false if unsafe).
$urlstringURL of the content to be embedded.
$argsstring | arrayOptional. Additional arguments for retrieving embed HTML. See wp_oembed_get() for accepted arguments. Default empty.

Wywołanie

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

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

Popularne w tej kategorii