wphooks.info - file_is_displayable_image

file_is_displayable_image

(trunk - 5.0-alpha-43304)

The hook occurs in the following file:

wp-admin/includes/image.php:
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
	}

	/**
	 * Filters whether the current image is displayable in the browser.
	 *
	 * @since 2.5.0
	 *
	 * @param bool   $result Whether the image can be displayed. Default true.
	 * @param string $path   Path to the image.
	 */
	return apply_filters( 'file_is_displayable_image', $result, $path );
}

/**
 * Load an image resource for editing.
 *
 * @since 2.9.0
 *
 * @param string $attachment_id Attachment ID.
 * @param string $mime_type Image mime type.