Filters the "BIG image" threshold value. If the original image width or height is above the threshold, it will be scaled down. The threshold is used as max width and max height. The scaled down image will be used as the largest available size, including the `_wp_attached_file` post meta value. Returning `false` from the filter callback will disable the scaling.
2560, $imagesize, $file, $attachment_id
Sortie :
@param int $threshold The threshold value in pixels. Default 2560.
@param array $imagesize {
@param string $file Full path to the uploaded image file.
@param int $attachment_id Attachment post ID.
// Modifier la valeur avec le filtre 'big_image_size_threshold'
add_filter('big_image_size_threshold', 'ma_fonction_filtre', 10, 1);
function ma_fonction_filtre(2560) {
// Modifier la valeur
return 2560;
}
Chargement des actualités...