wp_min_priority_img_pixels

wp_min_priority_img_pixels

Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.5.3

apply_filters('wp_min_priority_img_pixels') is found 2 times:

  • /wp-includes/media.php line 5921

    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 6040

    * @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]