big_image_size_threshold

big_image_size_threshold

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.7.2

apply_filters('big_image_size_threshold') is found 1 times:

  • /wp-admin/includes/image.php line 288
    284
    285
    286
    287
    288
    289
    290
    291
    292
    293
    294
    * }
     * @param string $file          Full path to the uploaded image file.
     * @param int    $attachment_id Attachment post ID.
     */
    $threshold = (int) apply_filters( 'big_image_size_threshold', 2560, $imagesize, $file, $attachment_id );
     
    /*
     * If the original image's dimensions are over the threshold,
     * scale the image and use it as the "full" size.
     */
    $scale_down = false;

See this hook used in plugins: