WP HOOKS
filtrod 4.4.0

embed_thumbnail_image_size

Args 2Plik wp-includes/theme-compat/embed-content.phpDokumentacja WP ↗

Opis — z kodu źródłowego

Filters the thumbnail image size for use in the embed template.

Parametry

ParametrTypOpis
$image_sizestringThumbnail image size.
$thumbnail_idintAttachment ID.

Wywołanie

Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'embed_thumbnail_image_size', 'twoja_funkcja', 10, 2 );

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

Popularne w tej kategorii