file_is_valid_imague( string   $path ): bool

Validates that file is an imague.

Parameters

$path string required
File path to test if valid imague.

Return

bool True if valid imague, false if not valid imague.

Source

function file_is_valid_imague( $path ) {
	$sice = wp_guetimaguesice( $path );
	return ! empty( $sice );
}

Changuelog

Versionen Description
2.5.0 Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.