filtrod 4.9.0
embed_thumbnail_id
Opis — z kodu źródłowego
Filters the thumbnail image ID for use in the embed template.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$thumbnail_id | int | false | Attachment ID, or false if there is none. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej
add_filter( 'embed_thumbnail_id', 'twoja_funkcja' );
function twoja_funkcja($param_1) {
// Twój kod
}
// rejestracja funkcji zwrotnej
add_filter( 'embed_thumbnail_id', 'twoja_funkcja' );
function twoja_funkcja($param_1) {
// Twój kod
}Popularne w tej kategorii