wphooks.info - file_is_displayable_image

file_is_displayable_image

The hook occurs in the following file:

wp-admin/includes/image.php:
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
	}

	/**
	 * 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.