filtrod 2.9.0
embed_cache_oembed_types
Opis — z kodu źródłowego
Filters the array of post types to cache oEmbed results for.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$post_types | string[] | Array of post type names to cache oEmbed results for. Defaults to post types with <code>show_ui</code> set to true. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej
add_filter( 'embed_cache_oembed_types', 'twoja_funkcja' );
function twoja_funkcja($param_1) {
// Twój kod
}
// rejestracja funkcji zwrotnej
add_filter( 'embed_cache_oembed_types', 'twoja_funkcja' );
function twoja_funkcja($param_1) {
// Twój kod
}Popularne w tej kategorii