big_image_size_threshold

big_image_size_threshold

Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.5.2

apply_filters('big_image_size_threshold') is found 1 times:

  • /wp-admin/includes/image.php line 288
    		 * }
    		 * @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.
    		 */
    		if ( $threshold && ( $image_meta['width'] > $threshold || $image_meta['height'] > $threshold ) ) {
    

See this hook used in plugins: