filtrod 2.9.0
oembed_linktypes
Opis — z kodu źródłowego
Filters the link types that contain oEmbed provider URLs.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$format | string[] | 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
}
// rejestracja funkcji zwrotnej
add_filter( 'oembed_linktypes', 'twoja_funkcja' );
function twoja_funkcja($param_1) {
// Twój kod
}Popularne w tej kategorii