WP HOOKS
filtrod 6.3.0

wp_min_priority_img_pixels

Args 1Plik wp-includes/media.phpDokumentacja WP ↗

Opis — z kodu źródłowego

Filters the minimum square-pixels threshold for an image to be eligible as the high-priority image.

Parametry

ParametrTypOpis
$thresholdintMinimum square-pixels threshold. Default 50000.

Wywołanie

Rejestracja callbackaphp
// rejestracja funkcji zwrotnej
add_filter( 'wp_min_priority_img_pixels', 'twoja_funkcja' );

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

Popularne w tej kategorii