wp_min_priority_img_pixels

wp_min_priority_img_pixels

Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7.1

apply_filters('wp_min_priority_img_pixels') is found 2 times:

  • /wp-includes/media.php line 6125

    if ( $increase_count ) {
    wp_increase_content_media_count();
    } elseif ( $maybe_increase_count ) {
    /** This filter is documented in wp-includes/media.php */
    $wp_min_priority_img_pixels = apply_filters( ‘wp_min_priority_img_pixels’, 50000 );

    if ( $wp_min_priority_img_pixels <= $attr['width'] * $attr['height'] ) { wp_increase_content_media_count(); } } [/php]

  • /wp-includes/media.php line 6244

    * @since 6.3.0
    *
    * @param int $threshold Minimum square-pixels threshold. Default 50000.
    */
    $wp_min_priority_img_pixels = apply_filters( ‘wp_min_priority_img_pixels’, 50000 );

    if ( $wp_min_priority_img_pixels <= $attr['width'] * $attr['height'] ) { $loading_attrs['fetchpriority'] = 'high'; wp_high_priority_element_flag( false ); } [/php]