akcjaod 2.9.0
end_fetch_post_thumbnail_html
Opis — z kodu źródłowego
Fires after fetching the post thumbnail HTML.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$post_id | int | The post ID. |
$post_thumbnail_id | int | The post thumbnail ID. |
$size | string | int[] | Requested image size. Can be any registered image size name, or an array of width and height values in pixels (in that order). |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_action( 'end_fetch_post_thumbnail_html', 'twoja_funkcja', 10, 3 );
function twoja_funkcja($param_1, $param_2, $param_3) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_action( 'end_fetch_post_thumbnail_html', 'twoja_funkcja', 10, 3 );
function twoja_funkcja($param_1, $param_2, $param_3) {
// Twój kod
}Popularne w tej kategorii