wp_min_priority_img_pixels filter-hookWP 6.3.0

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

Usage

add_filter( 'wp_min_priority_img_pixels', 'wp_kama_min_priority_img_pixels_filter' );

/**
 * Function for `wp_min_priority_img_pixels` filter-hook.
 * 
 * @param int $threshold Minimum square-pixels threshold.
 *
 * @return int
 */
function wp_kama_min_priority_img_pixels_filter( $threshold ){

	// filter...
	return $threshold;
}
$threshold(int)
Minimum square-pixels threshold.
Default: 50000

Changelog

Since 6.3.0 Introduced.

Where the hook is called

wp_maybe_add_fetchpriority_high_attr()
wp_min_priority_img_pixels
wp_get_loading_optimization_attributes()
wp_min_priority_img_pixels
wp-includes/media.php 6244
$wp_min_priority_img_pixels = apply_filters( 'wp_min_priority_img_pixels', 50000 );
wp-includes/media.php 6125
$wp_min_priority_img_pixels = apply_filters( 'wp_min_priority_img_pixels', 50000 );

Where the hook is used in WordPress

Usage not found.