WP HOOKS
filtrod 2.9.0

oembed_fetch_url

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

Opis — z kodu źródłowego

Filters the oEmbed URL to be fetched.

Parametry

ParametrTypOpis
$providerstringURL of the oEmbed provider.
$urlstringURL of the content to be embedded.
$argsarrayOptional. 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_fetch_url', 'twoja_funkcja', 10, 3 );

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

Popularne w tej kategorii