WP HOOKS
filtrod 2.9.0

oembed_linktypes

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

Opis — z kodu źródłowego

Filters the link types that contain oEmbed provider URLs.

Parametry

ParametrTypOpis
$formatstring[]Array of oEmbed link types. Accepts 'application/json+oembed', 'text/xml+oembed', and 'application/xml+oembed' (incorrect, used by at least Vimeo).

Wywołanie

Rejestracja callbackaphp
// rejestracja funkcji zwrotnej
add_filter( 'oembed_linktypes', 'twoja_funkcja' );

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

Popularne w tej kategorii