wp_min_priority_img_pixels
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_min_priority_img_pixels
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 );