Filters the path to an attachment's file when editing the image. The filter is evaluated for all image sizes except 'full'.
$filepath, $attachment_id, $size
Sortie :
@param string $path Path to the current image. @param int $attachment_id Attachment ID. @param string|int[] $size Requested image size. Can be any registered image size name, or
// Modifier la valeur avec le filtre 'load_image_to_edit_filesystempath'
add_filter('load_image_to_edit_filesystempath', 'ma_fonction_filtre', 10, 1);
function ma_fonction_filtre($filepath) {
// Modifier la valeur
return $filepath;
}
Chargement des actualités...