Filters file type based on the extension name.
$path
Sortie :
@param array[] $ext2type Multi-dimensional array of file extensions types keyed by the type of file. @param string $path Path to the file. @return int The size of the file in bytes, or 0 in the event of an error.
// Utilisation de la fonction wp_filesize
$result = wp_filesize($path);
if ($result) {
// Votre logique ici
}
Chargement des actualités...